I have been trying to install a .tar.gz program. Part way through "make", it stops with an error message: <<<< large amount of make snipped >>>> /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -ljpeg collect2: ld returned 1 exit status make[3]: *** [linpsk] Error 1 rm cpskdemodulator.moc.cpp ctxwindow.moc.cpp macros.moc.cpp cdemodulator.moc.cpp ctxfunctions.moc.cpp crecording.moc.cpp cledbutton.moc.cpp csquelch.moc.cpp pskmodulator.moc.cpp frequencyselect.moc.cpp crxwindow.moc.cpp linpsk.moc.cpp cmodulator.moc.cpp ctxdisplay.moc.cpp rttymodulator.moc.cpp crxchannel.moc.cpp spectrumdisplay.moc.cpp macrowindow.moc.cpp controlpanel.moc.cpp ctrigger.moc.cpp crxdisplay.moc.cpp make[3]: Leaving directory `/home/keith/Documents/linpsk-0.8.0.4/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/keith/Documents/linpsk-0.8.0.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/keith/Documents/linpsk-0.8.0.4' make: *** [all] Error 2 I assume that I am a library missing, but have no idea which. There is no -ljpeg on the system and Google does not give an answer. I have only got the /usr/lib directory as far as /usr/lib/gcc-lib/i586-suse-linux/3.3.4 Please can anyone help? Many thanks Keith
On Tuesday 28 December 2004 14:19, Keith Powell wrote:
I have been trying to install a .tar.gz program.
Part way through "make", it stops with an error message:
<<<< large amount of make snipped >>>>
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -ljpeg <snip> I assume that I am a library missing, but have no idea which.
There is no -ljpeg on the system and Google does not give an answer.
You need the package libjpeg-devel In general, when a compiler uses -lsomething what you're looking for is a file called libsomething.a to get the compile to go through, and libsomething.so to get the program to run afterwards
Am Dienstag, 28. Dezember 2004 14:19 schrieb Keith Powell:
There is no -ljpeg on the system and Google does not give an answer. o sorry, my mistake, you answered it. Have you checked the READMEs for dependencies ? Another thought: Edit the Makefile or use ./configure to remove the "feature" -ljpeg. HTH Dan
On Tuesday 28 Dec 2004 13:28, Anders Johansson wrote:
On Tuesday 28 December 2004 14:19, Keith Powell wrote:
I have been trying to install a .tar.gz program.
Part way through "make", it stops with an error message:
<<<< large amount of make snipped >>>>
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld : cannot find -ljpeg
<snip>
I assume that I am a library missing, but have no idea which.
There is no -ljpeg on the system and Google does not give an answer.
You need the package libjpeg-devel
In general, when a compiler uses -lsomething what you're looking for is a file called libsomething.a to get the compile to go through, and libsomething.so to get the program to run afterwards
Thanks Anders and Dan. That was the problem. I needed libjpeg-devel installed. It's working now. Thanks also, Anders, for the explanation of compiler messages and libraries. I'll write it down, or else I will only forget it! Cheers Keith
participants (3)
-
Anders Johansson
-
Dan Am
-
Keith Powell