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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-24-2010, 12:02 AM
|
#1
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
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
|
|
|
01-24-2010, 01:22 AM
|
#2
|
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821
Rep: 
|
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.
|
|
|
01-24-2010, 01:39 AM
|
#3
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
Original Poster
|
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
|
|
|
01-24-2010, 01:59 AM
|
#4
|
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821
Rep: 
|
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 ...
|
|
|
01-24-2010, 02:08 AM
|
#5
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
Original Poster
|
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
|
|
|
01-24-2010, 11:59 AM
|
#6
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
Original Poster
|
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!
|
|
|
01-24-2010, 12:27 PM
|
#7
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
Original Poster
|
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
|
|
|
01-25-2010, 08:19 PM
|
#8
|
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821
Rep: 
|
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.
|
|
|
01-25-2010, 08:54 PM
|
#9
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
Original Poster
|
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
|
|
|
01-26-2010, 12:30 PM
|
#10
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
Original Poster
|
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
|
|
|
All times are GMT -5. The time now is 01:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|