PDA

View Full Version : g++ and knoppix



rafal_rr
10-14-2010, 01:09 PM
i've tried to install lactivemq-cpp libraries, but i get error:
checking for pthread_create in -lpthread... no configure: error: libpthread not found! but lpthread.so is in a directory /usr/lib nevermind. i've tried to compile an example program in c++ and i get error:
g++: command not found how to install g++ using apt-get? there is no "build-essential" (like in ubuntu) in repositories

rusty
10-14-2010, 02:12 PM
Try using aptitude. You didn't say which version of knoppix you are using , but in 6.0.2 ,
aptitude update followed by
apt-cache policy build-essential will show that it is in indeed available.
aptitude install build-essential will install it, you will have to reject it's first attemp and accept a downgrade of some other packages before it will install. Then you should be able use aptitude to install the libraries.

Good luck.

rafal_rr
10-15-2010, 12:41 PM
Try using aptitude. You didn't say which version of knoppix you are using , but in 6.0.2 ,
aptitude update followed by
apt-cache policy build-essential will show that it is in indeed available.
aptitude install build-essential will install it, you will have to reject it's first attemp and accept a downgrade of some other packages before it will install. Then you should be able use aptitude to install the libraries.

Good luck.

thanks. it works. ;) but when i try to install lactivemqq-cpp, i have error:
/UNIONFS/usr/bin/../lib/gcc/../../include/c++/4.3/ext/new_allocator.h:108: error: no matching function for call to 'operator new(unsigned int, void*)' :0: note: candidates are: void* operator new(unsigned int) make[2]: *** [activemq/cmsutil/libactivemq_cpp_la-CmsAccessor.lo] Error 1 make[2]: Leaving directory `/home/knoppix/activemq-cpp-library-3.1.3/src/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/knoppix/activemq-cpp-library-3.1.3' make: *** [all] Error 2 what's wrong

rusty
10-15-2010, 08:48 PM
Not sure, perhaps posting in one of the Activemq forums (http://activemq.apache.org/discussion-forums.html) would yield an answer.

rafal_rr
11-30-2010, 05:30 PM
cpp.cpp: [code]#include using namespace std ; int main(int argc, char ** argv) { cout