LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-11-2004, 04:22 PM   #1
poiuytrewq
Member
 
Registered: Jul 2004
Posts: 107

Rep: Reputation: 15
making ./configure find installed software


when compiling programs, i quite often have the problem of configure not finding programs that i have installed

for example, while trying to configure gparted (a graphical partition editor)

configure: error: *** libparted >= 1.6.13 not installed - get it from http://www.gnu.org/software/parted/ ***

however, after i got that error the first time, i downloaded (>v1.6.13) it -> ./configure -> make -> make install

eveything seemed to work fine. but after runing the ./configure for gparted again, i still got the not installed error.

how can i make ./configure find that i have libparted

(i run Fedora core1 which is an rpm based distro, and usually get errors finding other programs that i installed through make install, and not ususally with rpm installed things. although that is not a strick rule)

help?
 
Old 11-11-2004, 05:05 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,114

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Try running ldconfig and see if that doesn't make the configure script pick it up. If not, there's usually an option --with-<package>-dir to tell configure exactly where certain things are. So if you configured libparted with a nonstandard prefix like /opt/parted or something,. you can user --with-libparted-dir=/opt/parted to tell configure where to find it.
 
Old 11-12-2004, 01:05 AM   #3
poiuytrewq
Member
 
Registered: Jul 2004
Posts: 107

Original Poster
Rep: Reputation: 15
where exactly are you suggesting i run ldconfig? in the libparted dir? in the gparted dir? before or after configuring?
 
Old 05-11-2005, 05:40 AM   #4
windoze killa
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: FC2
Posts: 81

Rep: Reputation: 15
Come on guys. It has been 6 months and no answer. Now I am having the same problem. I even looked for parted and found it in /sbin but this was obviously the wrong version. I also found the correct version in /usr/local/sbin but no matter what I tried I could not get the gparted configure to find it. Why is this always a problem? Why can't the direction to correct this be made so some of us non software gurus be able to understand it. I have been trying to give nano mush the boot for years but eveytime I find a program that allows me to move on I have trouble installing it. Sorry about the bitch session but it does drive me (and I know a lot of others) crazy.

Hope you can help.
 
Old 05-11-2005, 05:50 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by windoze killa
. Why is this always a problem? Why can't the direction to correct this be made so some of us non software gurus be able to understand it.
Hope you can help.
because you did it wrong? because the system works when the person using it knows what they are doing. first, ./configure, make, make install will only get you so far before you start having problems, some packages need to be built certain ways. it's hard to say what your problem is considering you didn't post the error message from configure, but (as a guess) libparted uses pkg-config to export the include and linking flags to gcc and ld and you have libparted in /usr/local, which pkg-config does not search ( unless you tell it to). also, your problem with rpm complaining about missing deps when you install something from source is because "make install" does not update the rpm database, rpm does. look into rpmbuild or checkinstall to learn how to make rpm's of your builds and install them instead of doing make install, it'll make life easier for you.
 
Old 05-12-2005, 05:49 AM   #6
windoze killa
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: FC2
Posts: 81

Rep: Reputation: 15
Thanks for your reply. But I didn't mention anything about RPM complaining about missing deps. I am trying to install from source. I also agree whole heartedly that pkg-config is looking in the wrong spot. Problem is, how do I tell it to look in the right spot? Once before I tried to install something and when it failed it told me what to do to fix it. What parameter to set when running ./configure. Also the error message is the same as in the first post.

configure: error: *** libparted >= 1.6.13 not installed - get it from http://www.gnu.org/software/parted/ ***

The following is the section out of the configure script. Obviously PARTED_PATH is the thing that has to be specified. How do you do it?

if test -n "$PARTED_PATH"; then
echo "$as_me:$LINENO: result: $PARTED_PATH" >&5
echo "${ECHO_T}$PARTED_PATH" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if ! (( ($( $PARTED_PATH --version | cut -d. -f3 | cut -d' ' -f1 )) > 12 )) 2>/dev/null
then
{ { echo "$as_me:$LINENO: error: *** libparted >= 1.6.13 not installed - get it from http://www.gnu.org/software/parted/ ***" >&5
echo "$as_me: error: *** libparted >= 1.6.13 not installed - get it from http://www.gnu.org/software/parted/ ***" >&2;}
{ (exit 1); exit 1; }; }
fi

Maybe I am missing something very simple.

Also why can't there be a STANDARD spot for installing certain things. It seems that FC2 installed parted in the right spot but is too old. You would think that the writers of parted would make it so when you install a newer version it would go to the same spot. It would safe a lot of problems if it did. This also applies to most other apps I have tried to install.

I also like your suggestion of making my own RPMs but unfortunately I don't have the time to learn that right now.

Thanks again
 
Old 05-12-2005, 12:48 PM   #7
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 244

Rep: Reputation: 31
Try running locate libparted | less in order to find where the libs are installed.

Then make sure the directories that contain libparted and libparted-devel appear in the file /etc/ld.so.conf

then, as root, run ldconfig

This should enable pkg-cfg to find the libraries.
 
Old 05-12-2005, 01:12 PM   #8
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
add:
/usr/local/lib
to /etc/ld.so.conf
then run ldconfig.
Failing that, reinstall libparted, this time doing:
./configure --prefix=/usr
to put it in a more standard location.
 
Old 05-13-2005, 12:56 AM   #9
windoze killa
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: FC2
Posts: 81

Rep: Reputation: 15
I will try it. Shouldn't have to but will, just to prove a point.

PS. QTparted managed to find it ok, why not gparted????????

PPS. Love your sig. Just hope some people take note.
 
Old 05-13-2005, 05:41 AM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
the gparted configure script is searching your PATH for $PREFIX/sbin/parted, is /usr/local/sbin in your $PATH?
 
Old 05-13-2005, 05:06 PM   #11
windoze killa
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: FC2
Posts: 81

Rep: Reputation: 15
Not sure. How do I add it?
 
Old 05-13-2005, 06:25 PM   #12
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
export PATH=<new path>:$PATH

so if "new path" is /usr/local/sbin:

export PATH=/usr/local/sbin:$PATH
 
Old 05-14-2005, 06:43 AM   #13
windoze killa
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: FC2
Posts: 81

Rep: Reputation: 15
Thank you. Didn't solve my problem. Still comes up with the same error.

Will stick with qtparted I think.

Last edited by windoze killa; 05-14-2005 at 06:45 AM.
 
Old 05-14-2005, 06:48 AM   #14
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
and you are sure parted is in your path?

I've never used gparted, so I figured I'd try it out, and configure picked up libparted without complaint.

it's allright, but it's no cfdisk

Last edited by __J; 05-14-2005 at 06:51 AM.
 
Old 05-14-2005, 04:56 PM   #15
windoze killa
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: FC2
Posts: 81

Rep: Reputation: 15
Where was your libparted? And what is cfdisk??
 
  


Reply


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
lib that is installed but ./configure can't find mandrakemikael Linux - Newbie 3 09-01-2004 03:31 PM
Installed software on Mandrake 10.0, and cant find it Kourosh Linux - Software 5 08-26-2004 06:37 AM
GTK installed, yet ./configure can't find it Micro420 Mandriva 12 08-13-2004 04:27 AM
cant find installed software ElementNine Linux - Software 2 01-28-2004 03:41 AM
can't find installed libxml2 during ./configure progressdll Linux - Software 2 09-23-2003 09:52 AM


All times are GMT -5. The time now is 02:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration