LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-24-2010, 12:02 AM   #1
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Slack64; trying to compile libparted = "error: GNU Readline could not be found"


Anyone successfully built LibParted on Slackware (or any system) and either encountered this error and got around it, or has an idea why it's happening?

Readline is installed here, no question. I began all this with the Stock readline version 1.9 (IIRC) and parted wouldn't find the readline libs. So I thought what the heck, I'll reinstall or upgrade Readline, to go with the shiny new parted version, but still no go.

So, the summary: I'm trying to run ./configure on sources for Parted-2.1 on Slack64, and it cannot find readline. Here's some info:
Code:
bash-3.1# ./configure --prefix=/usr --libdir=/usr/lib64 --includedir=/usr/include --enable-dependency-tracking --disable-largefile --with-readline
...
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
... blah blah ...
checking for ld used by GCC... /usr/x86_64-slackware-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for dlopen in -ldl... yes
checking for uuid_generate in -luuid... yes
checking for dm_task_create in -ldevmapper... yes
checking for library containing tgetent... -lncurses
checking for readline in -lreadline... no
configure: error: GNU Readline could not be found which is required for the
--with-readline (which is enabled by default).  Either disable readline support with
--without-readline or downloaded and install it from:
        ftp.gnu.org/gnu/readline
Note: if you are using precompiled packages you will also need the development
package as well (which may be called readline-devel or something similar).
Code:
bash-3.1# ls /var/log/packages | grep readline
readline-6.1-x86_64-0_sva <-- see! Nice and new.
bash-3.1#
Code:
bash-3.1# ls /usr/lib64 | grep readline
libreadline.a
libreadline.so
libreadline.so.6
libreadline.so.6.1
bash-3.1#
bash-3.1# ls /usr/include/readline
chardefs.h  history.h  keymaps.h  readline.h  rlconf.h  rlstdc.h  rltypedefs.h  tilde.h
bash-3.1#
Anyone know what gives here?? Is this a parted configure bug? Google turns up few similar stories, but there are some; one is here on LQ, but the OP found what he needed in a repository, so stopped trying to build it. I've perused the buggies reported on GNU Parted TRAC page, but nothing there since parted 1.8.8


Cheers!
Sasha
 
Old 01-24-2010, 01:22 AM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
hmm.. I was able to reproduce your error in slack 64 and eventually get past it by downloading and compiling readline myself, but now I'm getting errors compiling parted. Are you sure 2.1 is ready for primetime? Is there a feature in it you seek?

I've got quite a few micro brews in me preventing me from figuring this out as quickly as I should.
 
Old 01-24-2010, 01:39 AM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
crabboy, thanks for the input.

Here's how it started:

Trying to build Gparted, which I built successfully in the past, on Slack 11.

So, I have here Gparted sources, version 0.4.6.

Gparted ./configure fails; tells me it wants libparted >= 1.7.1. so I look around, and find that I already have libparted 1.9.x.
Same problem as the readline thing though; Gparted can't find the parted 1.9.x libs. So, I decide to reinstall, then finally upgrade libparted.

I'm not 100% certain that Parted 2.1 is ready for primetime, but I didn't see or read anywhere that it was not, either; and it's in the "stable" area of the FTP server where I got it from, so I figured why not.. I tend to try using the latest stuff unless there's a compelling reason not to.

So, trying to ./configure the new parted 2.1 to replace my 1.9.x parted, and I encounter this readline problem, andhere I am.

So, at the very start of it all, I did try building Gparted with my default readline and libparted (both the stock Slack64 versions) but the result was identical. So decided to try upgrading readline (which worked fine, it built and installed great) but didn't fix the fact that libparted cannot find it.

Gparted wants libparted.
libparted wants readline.
readline is installed, but cannot be found by anything :/

Sorry if I made this post a bit more convoluted than it probably needs to be; I'm nearing bed time very soon, am pretty tired.

Thanks for having a look
Sasha
 
Old 01-24-2010, 01:59 AM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
What version did you upgrade readline to? I compile/install readline and had to specify --with-readline=/usr/local (the location where I installed the new version) and finally pass the ./configure errors. I had used sh -x ./configure <options> to see what exactly it was trying to do.

I have worked past the last compile error, which was a problem with the dev-mapper library. I upgraded that (LVM2 2.2.02) and now getting some other compile error.

Yet another micro-brew in me so you don't want to listen to me anymore tonight ...
 
Old 01-24-2010, 02:08 AM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I upgraded to readline 6.1 -- but you gave me a clue.. You wrote that you specified --with-readline=/usr/local, but now, if I installed my readline to --prefix=/usr then maybe I need to use --with-readline=/usr for it to find it?

Seems weird to me; and no problem about the microbrews as I am probably not much better off, due to being very tired and ready for bed in a few minutes.

I will revisit this tommorrow, and update after having tried some --with-readline= options.

Sasha
 
Old 01-24-2010, 11:59 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Well, for the moment, this problem appears to be solved. Thanks to crabboy for the clues about specifying an =/location with the --with-readline argument. I gave it: =/usr and the problem is solved though I am still stumped about why this is necessary; it doesn't seem 'normal'.. Even the SlackBuilds do not specify such an option.

If anyone cares to enlighten me as to why the ./configure cannot seem to find Readline by itself, it'd be grateful.

Either way, on with the show!
 
Old 01-24-2010, 12:27 PM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
As a follow up: Since the above worked to find readline, I decided to try the same idea to compile Gparted.

Gparted wants libparted >= 1.7.1 and even though I already have libparted 1.9 installed, the ./configure cannot find it.

So, I'm sort of still at square one, only with "Gparted cannot find libparted" instead of "libparted cannot find readline".

And so far, trying to tell Gparted's configure script where to find the installed libparted, is failing:

Code:
bash# ./configure
/.../
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking for uuid_generate in -luuid... yes
checking for dlopen in -ldl... yes
checking for libparted >= 1.7.1... configure: error: *** Requires libparted >= 1.7.1.  Perhaps development header files missing?
bash-3.1#

bash-3.1# locate libparted
/usr/lib64/pkgconfig/libparted.pc
/usr/lib64/libparted.so
/usr/lib64/libparted.la
/usr/lib64/libparted-1.9.so.0.0.0
/usr/lib64/libparted.a
/usr/lib64/libparted-1.9.so.0

bash-3.1# ls /usr/include/parted
constraint.h  device.h  exception.h  geom.h     parted.h  unit.h
debug.h       disk.h    filesys.h    natmath.h  timer.h
bash-3.1#
So, further input is welcome.

Sasha
 
Old 01-25-2010, 08:19 PM   #8
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
I got past the libparted section of the configure for gparted:

checking for libparted >= 1.7.1... Found libparted 1.8.8 OK

/usr/lib/libparted-1.8.so.8
/usr/lib/pkgconfig/libparted.pc
/usr/lib/libparted.la
/usr/lib/libparted.so
/usr/lib/libparted-1.8.so.8.0.0


it failed on the gtkmm libraries which I don't have.
 
Old 01-25-2010, 08:54 PM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hi crab*

I can confirm the same for me. I have since re-installed the original libparted 1.8.x from Slack64, and the Gparted configure script finds that fine. It's weird, since I built the new libparted package exactly as the old one is.

Anyhow, now I get same as you, missing GTKMM, but I have already downloaded that some time ago, so that's where I'm going next.

I have a funny feeling that the reason I took a break from all this, a number of weeks ago, is what I will find when I go now to build GTKMM: *it* is missing something. And so on, and so on..

I shall see..

Thanks again for your input in this situ,

Sasha
 
Old 01-26-2010, 12:30 PM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
All done!
Last night I got everything installed (the dependencies) and built against my STOCK readline, and libparted 1.9.x. and have a working Gparted now.

It seems the trouble involved (my best guess here) the configure scripts not being able to locate stuff in /usr/include. This became particularly common with some of the (gnomish) libs and things I had to install as dependencies, like gtk+2, glib, gtkmm, etc...

For a number of the builds, I had to add -I/usr/include/<whatever> to the $CPPFLAGS, where <whatever> might have been readline, glib, gtk+2, etc.. With that, everything built nice and simple.

To verify (or prove myself wrong and have problems again!) I am going to try to upgrade my readline and libparted again to shiny new versions (for the heck of it) and try to rebuild Gparted against them. This will be later today, and I will update thread again.

Cheers!
Sasha
 
  


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
Slack64 multilib: Xfe "configure error: libFOX-1.6 not found" Compile this Slackware 6 09-16-2009 06:06 PM
cant install fdisk error: "libparted >= 1.7.0 not installed - please install first" ashes_sheldon Linux - Hardware 4 05-15-2009 06:42 AM
LFS6.3 - Ch5.4.1 "/bin/sh sort not found" error at "make bootstrap" ubyt3m3 Linux From Scratch 2 06-23-2008 12:09 AM
LFS6.3 livecd "ls : command not found" error after "su - lfs" rotu Linux From Scratch 2 06-19-2008 03:59 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:07 PM.

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