Installing apt-1.6.6 Isses

Asked by AJ Aboufariss on 2019-02-01

Hi Team, I am trying to install apt-1.6.6 on Ubuntu 18.04 - and after I ran cmake, I got the error below:

Run Build Command:"/usr/bin/make" "cmTC_0ca85/fast"
/usr/bin/make -f CMakeFiles/cmTC_0ca85.dir/build.make CMakeFiles/cmTC_0ca85.dir/build
make[1]: Entering directory '/home/ubuntu/qualys/apt-1.6.6/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0ca85.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_0ca85.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_0ca85
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0ca85.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_0ca85.dir/CheckFunctionExists.c.o -o cmTC_0ca85 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_0ca85.dir/build.make:97: recipe for target 'cmTC_0ca85' failed
make[1]: *** [cmTC_0ca85] Error 1
make[1]: Leaving directory '/home/ubuntu/patch
Makefile:126: recipe for target 'cmTC_0ca85/fast' failed
make: *** [cmTC_0ca85/fast] Error 2

Please advse. Thank you.
@AJ

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
2019-02-01
Last reply:
2019-02-01
AJ Aboufariss (247mission) said : #1

Also, since I just I upgraded my system to Ubuntu 18.04 and to avoid the issues I have with apt-1.6.6 - where do I download the latest security patch for 18.04 ?

Thank you !
@AJ

Manfred Hampl (m-hampl) said : #2

1. Why do you want to build your own version of install apt 1.6.6 on Ubuntu 18.04? There is version 1.6.8 in the standard repositories (bionic-updates).

2. I have seen such error message already somewhere else:
https://answers.launchpad.net/yade/+question/678139

/usr/bin/cmake ...
/usr/bin/cc ... CheckFunctionExists.c.o -o cmTC_0ca85 -lpthreads
/usr/bin/ld: cannot find -lpthreads

As far as I know, on Ubuntu it has to be -lpthread (without s)

I do not have any idea, what the root cause is for this.

Can you help with this problem?

Provide an answer of your own, or ask AJ Aboufariss for more information if necessary.

To post a message you must log in.