LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-15-2006, 01:09 AM   #1
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 168

Rep: Reputation: 30
htpasswd password file


I am trying to create a password file for apache authentication using:

htpasswd -c htpasswd josh

This is the error I get

htpasswd: error while loading shared libraries: libpdf.so.2: cannot open shared object file: No such file or directory

What does this mean, and how do I solve it?

I'm on Fedora core 4.

Thanks.
 
Old 07-15-2006, 02:41 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Did you compile your own Apache? If so, what were your arguments to the configure script? On my setup, libpdf isn't required for htpasswd. Here is my output from ldd:
Code:
ldd /usr/local/apache2/bin/htpasswd
        linux-gate.so.1 =>  (0xffffe000)
        libssl.so.0 => /usr/lib/libssl.so.0 (0xb7edb000)
        libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0xb7da2000)
        libaprutil-0.so.0 => /usr/local/apache2/lib/libaprutil-0.so.0 (0xb7d8d000)
        libgdbm.so.3 => /usr/lib/libgdbm.so.3 (0xb7d87000)
        libdb-4.2.so => /lib/libdb-4.2.so (0xb7cb4000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb7c94000)
        libapr-0.so.0 => /usr/local/apache2/lib/libapr-0.so.0 (0xb7c74000)
        librt.so.1 => /lib/tls/librt.so.1 (0xb7c6b000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7c48000)
        libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0xb7c1a000)
        libnsl.so.1 => /lib/tls/libnsl.so.1 (0xb7c04000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7bf2000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb7bee000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7abe000)
        /lib/ld-linux.so.2 (0xb7f2d000)
 
Old 07-15-2006, 06:04 AM   #3
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 168

Original Poster
Rep: Reputation: 30
I'm using the apache that came with fedora core 4.

ldd /usr/local/bin/htpasswd
linux-gate.so.1 => (0x00774000)
libm.so.6 => /lib/libm.so.6 (0x00d26000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x04782000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00b5a000)
libpdf.so.2 => not found
libz.so.1 => /usr/lib/libz.so.1 (0x00d52000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x006ab000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00410000)
libmhash.so.2 => not found
libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x00d7b000)
libssl.so.0.9.7 => not found
libcrypto.so.0.9.7 => not found
libresolv.so.2 => /lib/libresolv.so.2 (0x00dd4000)
libdl.so.2 => /lib/libdl.so.2 (0x00d4c000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00db3000)
libc.so.6 => /lib/libc.so.6 (0x00bfa000)
/lib/ld-linux.so.2 (0x00bd8000)
 
Old 07-15-2006, 02:53 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
I'd say the fastest way to get it working is just to install the missing packages from the install CDs. As well as the PDF libs you'll need openssl (and maybe the devel packages as well) and libmhash (or whatever holds it, perhaps one of the dbm packages?).

You could download Apache and compile it yourself, but unless you've done that before it's simpler to get the missing libraries.
 
Old 07-15-2006, 10:41 PM   #5
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 168

Original Poster
Rep: Reputation: 30
I've compilled apache from source before. I'm just surprised how apache got installed without all the required libraries. Compilling from source definitely won't allow that.

What does "2" stand for in libpdf.so.2?

When I did a search for libpdf.so.2 rpm, nothing came up.
 
Old 07-16-2006, 02:26 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
As far as I know, the .2 is for the version number - unless you're a Spinal Tap fan in which case that's how many times you strum it...

Just guessing, but libpdf.so.2 may be in a -devel rpm for another application rather than being in its own. In the past I've used the following to search for rpms:
http://rpm.pbone.net/index.php3/stat/2/simple/2
http://rpmfind.net/linux/RPM/
http://www.fedoratracker.org/
http://distrowatch.com/table.php?distribution=fedora
Hope that helps...
 
  


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
Apache Cannot Open .htpasswd File alerola Linux - Security 4 02-11-2006 01:59 AM
howto run the htpasswd command with input from file for 500 usernames !! PK2K Linux - Software 4 02-02-2006 02:54 AM
htpasswd integra_twinz Linux - Newbie 10 11-01-2005 10:08 AM
input file to htpasswd igcsteve Linux - Newbie 4 06-05-2003 12:54 PM
htpasswd steve_c Linux - General 10 04-16-2002 10:15 AM


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

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