David Ryan writes:
> Can anyone who knows anything about Makefiles help please ?
>> I am trying to install kldap (which is supposed to be a graphical LDAP
> directory browser) and have hit a glitch when editing the Makefile.
>> The original file had "CC = c++" which I changed to "CC = gcc" since the
> original didn't work and I remembered from looking through (but not
> understanding) other Makefiles that "gcc" seemed to be a good thing.
While "gcc" will compile C++ sources just like "c++", it won't link
them without additional libraries. It's really better to let c++
figure it out.
> Anyway, after getting all the incude files to include I am now faced
> with the following error -
>> pooter:/kldap # make
> gcc -c -Wall -O2 -I/usr/lib/qt/include -I/usr/X11R6/include -I/opt/kde/include -I/usr/local/include -I/usr/include/g++-2.7 kldap.cpp
> gcc: installation problem, cannot exec `cc1plus': No such file or directory
> make: *** [kldap.o] Error 1
>> Any ideas ?
You have no C++ compiler installed. If you're running RedHat 6.1, you
need to install the following rpm's:
compat-egcs-c++-5.2-1.0.3a.1
egcs-c++-1.1.2-24
libstdc++-2.9.0-24
On other systems, you'll likely need other packages.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!