Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-14-2004, 04:47 AM   #1
LQ Newbie
Registered: Apr 2004
Distribution: Fedora Core II
Posts: 6

Rep: Reputation: 0
Question /usr/bin/ld error recieved on make

I've been using Linux for about a year and am still relatively new. I'm attempting to install the svgalib package from www <dot> svgalib <dot> org and am running FCII.

The problem is this: after trying to install, everything seems to be working fine until the end. I can man vga_whatever and see the installed folder. Here is the end of what I get.

cc -Wall -Wstrict-prototypes -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -g -I/root/svgalib-1.4.3/include -I/root/svgalib-1.4.3/gl -s -o fun fun.c -lvgagl -lvga
fun.c: In function `writestat':
fun.c:381: warning: implicit declaration of function `strlen'
/usr/bin/ld: cannot find -lvgagl
collect2: ld returned 1 exit status
make[1]: *** [fun] Error 1
make[1]: Leaving directory `/root/svgalib-1.4.3/demos'
make[1]: Entering directory `/root/svgalib-1.4.3/threeDKit'
cc -s -o plane planukit.o planinit.o 3dinit.o 3dkit.o wrapsurf.o quickmath.o triangle.o striangle.o wtriangle.o swtriangle.o -lm -lvgagl -lvga
/usr/bin/ld: cannot find -lvgagl
collect2: ld returned 1 exit status
make[1]: *** [plane] Error 1
make[1]: Leaving directory `/root/svgalib-1.4.3/threeDKit'
make: *** [demoprogs] Error 2

I've looked over the forums here and haven't seen much that addresses this, but I think it's a linker error. What can I do to fix this?? I've tried changing LD_LIBRARY_PATH and LIB_PATH and everything else I can think of. Please help me out! Thanks!
Old 12-14-2004, 10:09 AM   #2
LQ Newbie
Registered: Dec 2004
Location: Boston
Distribution: all
Posts: 23

Rep: Reputation: 15

Try setting your CC compiler to gcc.
setenv CC <path to gcc> (if using a csh derivative)
You may also need to set some flags to get the compiler to work.
Let me know how it goes.

Old 12-14-2004, 10:42 AM   #3
LQ Newbie
Registered: Apr 2004
Distribution: Fedora Core II
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the reply, but that didn't work. I didn't really know what to do with any flags info, so all I've done is set cc to use gcc. Any other suggestions?
Old 12-14-2004, 01:40 PM   #4
LQ Newbie
Registered: Dec 2004
Posts: 16

Rep: Reputation: 0
>> /usr/bin/ld: cannot find -lvgagl
the linker is looking for the library called '', but it can not
find it on your system. Check if you system has it installed, and if
so, recompile again, adding the following compiler flag:
where the above directory contains
Old 12-28-2004, 03:23 AM   #5
LQ Newbie
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
hi there,

although jmonolith2001 has solved his problem, I want to post this because I had a similar problem when trying to compile K3B. I got this error:

/bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o -rpath /usr/lib -L/usr/lib -L/usr/lib/qt-3.1/lib -L/usr/X11R6/lib -Wl,--enable-new-dtags -version-info 2:0:0 -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined k3bdevice.lo k3bscsicommand.lo k3btrack.lo k3btoc.lo k3bdevicemanager.lo k3bmsf.lo k3bdiskinfo.lo k3bdeviceglobals.lo k3bcrc.lo k3bcdtext.lo -lkio
/usr/bin/ld: cannot find -lart_lgpl_2
collect2: ld returned 1 exit status
make[3]: *** [] Error 1
make[3]: Leaving directory `/home/sam/temp/k3b-0.11.18/src/device'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sam/temp/k3b-0.11.18/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sam/temp/k3b-0.11.18'
make: *** [all] Error 2

I made a "locate libart_lgpl_2" (based on the reply from stanleyg76) and found a '/usr/lib/', so I only made a symlink "/usr/lib/" pointing to "/usr/lib/", and the problem was solved.

Hope someone can find this info useful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
make error: /usr/bin/ld: cannot find -lXext ryedunn Linux - Software 20 11-16-2011 03:28 AM
/usr/bin/ld: cannot find -lqt, make xconfig tuxandme Linux - Software 5 06-19-2005 01:04 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM
when running make get: usr/bin/ld: cannot find -lart_lgpl_2 nigma Linux - Software 0 02-12-2004 09:22 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration