LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-08-2005, 08:18 PM   #1
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Rep: Reputation: 68
can't find ldconfig


I'am compiling SVGAlib and it has a Makefile and I ran make install and it stops on a error
can't find ldconfig, I did a find next on Makefile for ldconfig and the only entry for ldconfig
is shown below, I used a editor to insert the /sbin/ldconfig, but it still comes up with can't find ldconfig while doing make install.
What gives ??

Jim

(this is the only entry for ldconfig in the Makefile)

endif
@echo Installing shared library image as \
$(addprefix $(sharedlibdir)/,$(notdir $(SHAREDLIBS))).
@for foo in $(notdir $(SHAREDLIBS)); do \
$(INSTALL_SHLIB) sharedlib/$$foo $(sharedlibdir)/$$foo; \
(cd $(sharedlibdir); \
ln -sf $$foo `echo $$foo | sed 's/\.so\..*/.so/'` ); \
done
@./fixldsoconf
@/sbin/ldconfig
 
Old 09-08-2005, 09:39 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I'am compiling SVGAlib and it has a Makefile and I ran make install and it stops on a error
can't find ldconfig, I did a find next on Makefile for ldconfig and the only entry for ldconfig
is shown below, I used a editor to insert the /sbin/ldconfig, but it still comes up with can't find ldconfig while doing make install."

Could you post the exact error message? Maybe it can't find the ldconfig program or maybe it is having trouble editing the ldconfig configuration file, /etc/ld.so.conf

----------------------
Steve Stites
 
Old 09-09-2005, 06:05 AM   #3
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
This is the place the error occurs.

Jim

make[1]: Leaving directory `/home/mickey/libc/svgalib-1.9.21/svgalib-1.9.21/kernel/svgalib_helper'
(cd threeDKit/; make install)
make[1]: Entering directory `/home/mickey/libc/svgalib-1.9.21/svgalib-1.9.21/threeDKit'
cc -Wall -Wstrict-prototypes -fPIC -I../include -I. -I../src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -c -o 3dinit.o 3dinit.c
cc -Wall -Wstrict-prototypes -fPIC -I../include -I. -I../src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -c -o 3dkit.o 3dkit.c
cc -Wall -Wstrict-prototypes -fPIC -I../include -I. -I../src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -c -o quickmath.o quickmath.c
cc -Wall -Wstrict-prototypes -fPIC -I../include -I. -I../src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -c -o swtriangle.o swtriangle.c
cc -Wall -Wstrict-prototypes -fPIC -I../include -I. -I../src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -c -o triangl.o triangl.c
cc -Wall -Wstrict-prototypes -fPIC -I../include -I. -I../src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -c -o triangle.o triangle.c
cc -Wall -Wstrict-prototypes -fPIC -I../include -I. -I../src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -c -o wrapsurf.o wrapsurf.c
cc -Wall -Wstrict-prototypes -fPIC -I../include -I. -I../src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -c -o wtriangle.o wtriangle.c
cc -shared -Wl,-soname,lib3dkit.so.1 \
-o lib3dkit.so.1.9.21 3dinit.o 3dkit.o quickmath.o swtriangle.o triangl.o triangle.o wrapsurf.o wtriangle.o -lm
install -c -m 755 -o root -g root lib3dkit.so.1.9.21 /usr/local/lib/lib3dkit.so.1.9.21
(cd /usr/local/lib; ln -sf lib3dkit.so.1.9.21 `echo lib3dkit.so.1.9.21 | sed 's/\.so\..*/.so/'` )
ldconfig
make[1]: ldconfig: Command not found
make[1]: *** [/usr/local/lib/lib3dkit.so.1.9.21] Error 127
make[1]: Leaving directory `/home/mickey/libc/svgalib-1.9.21/svgalib-1.9.21/threeDKit'
make: *** [lib3dkit-install] Error 2
 
Old 09-09-2005, 10:08 AM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"make[1]: ldconfig: Command not found"

It is not finding the ldconfig command. Are you running as root or user? It is possible that user cannot run ldconfig. try this command:
which ldconfig
to see if ldconfig is available to the make command.

-----------------------------
Steve Stites
 
Old 09-09-2005, 05:51 PM   #5
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
if I type in which ldconfig , it can't find ldconfig , but if I type in whereis ldconfig it points to it in /sbin/ldconfig.
And that is where I edited in, in the Makefile.
I'm running make install as su "root"

Jim
 
Old 09-09-2005, 07:44 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"if I type in which ldconfig , it can't find ldconfig"

ldconfig is not on your PATH.

"I'm running make install as su "root""

su "root" has a different PATH than root on most distributions. Try doing your compile as root.

---------------------
Steve Stites
 
Old 09-10-2005, 12:31 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think that you want to use "su -l" instead of just plain "su". This will set your paths to the root path. You could try both "su" and "su -l" and then look at the difference in the $PATH variable to make sure.
 
  


Reply



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
What is ldconfig? MicahCarrick Linux - Software 2 10-03-2005 06:31 PM
where is ldconfig ? trutnev Red Hat 3 06-01-2005 12:05 PM
ldconfig diefree Fedora 4 12-11-2004 02:20 AM
what does ldconfig do ? rajorshi Slackware 8 09-14-2004 04:19 PM
ldconfig gui10 Slackware 3 05-14-2002 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:49 AM.

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