Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189
Rep:
What to do when "make" fails?...
I have been trying (once again) to install the Kdevelop package from sources. I have an RPM version which is giving me some strange problems so I thought I would try to configure and install the package from source.
"./configure" works with no apparent errors and invites me to run "make".
When I run "make" it goes great guns for what seems like ages but finally stops at the following point:
First try emerge rsync.The latest version of libpng installs png.h and pngconf.h into /usr/local/include. The static library and shared object are at /usr/local/lib.There is no /usr/local/include/libpng.The problem seems to be that there is an old copy of png.h at /usr/include and /usr/lib, which by default are being searched by the compiler first, and thus linked against first.Move the old versions of the headers and symlink the new headers to the /usr/include dir.Try doing the same with the static and shared libraries as well.
The simplest fix is probably (as root) assuming $prefix is
/usr/local
cd /usr/local/include
ln -s libpng/*.h .
then remove config.cache and reconfigure.If you have trouble doing this try adding CPPFLAGS==-I/usr/local/include/libpng.
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189
Original Poster
Rep:
Thanks Corbis_demon,
I'm not sure I understand what you were getting me to do - but I did it anyway.
Unfortunatley I think I made a mistake. When I typed ln -s libpng/*.h I left off the end "." (i.e. I typed "ln -s libpng/*.h" NOT "ln -s libpng/*.h .")
Ooops! sorry. Can I fix that?
Quote:
then remove config.cache
As I had already run "make distclean" before starting again I presume I didn't need to do this?
If I try running ./configure with the "CPPFLAGS==-I/usr/local/include/libpng" it just gives me this error:
Code:
[mark@localhost kdevelop-3.0.4]$ ./configure CPPFLAGS==-I/usr/local/include/libpng --enable-debug=full --prefix=$KDEDIR --with-kdelibsdoxy-dir=$KDEDIR/share/doc/HTML/en/kdelibs-apidocs --disable-ada --disable-bash --disable-fortran --disable-haskell --disable-java --disable-pascal --disable-perl --disable-php --disable-python --disable-ruby --disable-sql --disable-antproject --disable-genericproject --disable-scriptproject --disable-trollproject --disable-clearcase --disable-perforce --disable-subversion
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189
Original Poster
Rep:
Well thank you all!
That did the trick! (I also discovered that I needed the development version of the libjpeg library) After the world's longest ever compile (geriatric 500Mhz PIII) I now have a fully-functional version of KDevelop.
I've said it before and I'm sure I'll say it again - This is (probably) the friendliest and most useful place on Earth.
Originally posted by ArthurDent
I've said it before and I'm sure I'll say it again - This is (probably) the friendliest and most useful place on Earth.
Thanks again....
Mark
Tank you for the positive feedback, I guess Jermey and
all of us mods equally appreciate that :)
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189
Original Poster
Rep:
Yes. Without doubt one of the friendliest places on Earth. However, Ford does tell of this little-known planet, just left of Alpha Nova in the outward arm of the spiral galaxy which is entirely populated by women - who not only solve all your Linux problems but they also... Oh wait - I've just found the entry for LQ in the Hitch Hikers' Guide to the Galaxy. It says:
LinuxQuestions.org - An unusually friendly place on this otherwise rather uncouth little planet. Populated by the Linuxians - strange penguin-like humanoids - who like to solve each others' problems without asking for the little green bits of paper that seem to cause so many problems on the rest of the planet - and generally be nice to one another.
The Linuxians, under their General Torvalds, are apparently at war with another group of humanoids , the Windowlians, and their General Gates. The funny thing about this war is that the Windowlians have to pay for their weapons which very often don't work, so the Linuxians just give them their weapons (saying anyone can have them if they want them) which they get for free anyway because they make them themselves.
We predict that this war will be won by the Linuxians which will be nice because it will be the first example on this planet of a war being won by the 'nice' side."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.