LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-02-2003, 12:09 PM   #1
roen51
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
libmcrpyt installation on redhat 7.3


Hello,
i am having problems installing libmcrypt-2.5.0 on red hat 7.3.

these are the instruction ive followed so far:

1. tar -pxzf libmcrypt-2.5.0.tar.gz
2. cd libmcrypt-2.5.0
3. ./configure --disable-posix-threads
4. make
5. make install
6. cp /usr/local/lib/libmcrypt.* /usr/lib
7. cd ..
8. echo "/usr/local/lib/libmcrypt" >>/etc/ld.so.conf
9. ldconfig

all appears to go well, however, when i initiate ldconfig, i get the following:
# ldconfig
ldconfig: /usr/lib/libmcrypt.so.4 is not a symbolic link

i have attempted to create a symbolic link in /usr/lib/ as follows:
# ln -s /usr/lib/libmcrypt.so.4 /usr/lib/libmcrypt.so.4
ln: `/usr/lib/libmcrypt.so.4': File exists

the /etc/ld.so.conf contains the following:
# cat /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/mysql
/usr/local/lib/libmcrypt

i am unsure of where the sym link that ldconfig is asking for should go.
If any additional info is needed to fill the picture, let me know.
all help is appreciated in advance.
cheers,
 
Old 07-02-2003, 02:02 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Firstly: I've never installed this package but knowing the general rules my advice is to use:
'./configure --prefix=/usr --disable-posix-threads'
which prepare the Makefile for installation in /usr/lib against /usr/local/lib
Normally ldconfig is done with make command (observe the output messages), but if not try run it manually.

But before above:
1. remove all the libmcrypt.* files from all /usr/lib/ and /usr/local/lib/ directories
2. remove the last line from /etc/ld.so.conf
 
Old 07-02-2003, 02:59 PM   #3
roen51
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Original Poster
Rep: Reputation: 0
hi,
thanks for the quick reply dorian33.
using /usr/lib as the ins directory is a good idea, however, the remainder of the lib's i need to intsall (mhash, mcrypt) call for the use of /usr/local/lib/lib name

Install mhash

This is also needed by mcrypt. The version I used was 0.8.17

1. tar -pxzf mhash-0.8.17.tar.gz
2. cd mhash-0.8.17
3. ./configure
4. make
5. make install
6. ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2
7. cd ..

would using /usr/lib prefix affect the mhash ins?
thanks,
 
Old 07-02-2003, 05:20 PM   #4
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
As I wrote I don't know what the package contains, so all below is my experience.

I believe the '--prefix' is well documented. Try './configure --help'. You'll probably see that by default it is set to /usr/local. The "rest" part of the path should also be described over there. Usually for .so files it is "lib", for executables "bin", etc

As far as the "remainder" (as you call the mhash & mcrypt).
It is strange for me what you have written. Any "well written" application should:
- call another executable using $PATH variable rather than fixed directory
- use shared library using just its name rather than absolute path library location

You can put the .so files in any directory you want; the default are /lib and /usr/lib but adding for instance /mydir/ to the ld.so.conf you makes ldconfig to index also this directory and after that the executable should be able to use requested library without any problems.

Regarding links.
If you have got for instance libxxx.so.6 file - it is the xxx library version 6. But the programs are not usually interested in version number. So you need to do the 'ln -s libxxx.so.6 libxxx.so'. This way ldconfig will index the "both" libraries with names .so & .so.6 making possible to use the library independently of the "calling name".
I don't think that the link you have posted is necessary.
 
  


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
installation with redhat 9 zexter Red Hat 3 11-01-2003 07:10 AM
RedHat 9 installation. Requel Linux - Software 4 08-15-2003 09:04 AM
Redhat Installation Zeratul Linux - Newbie 5 04-21-2003 05:34 PM
installation redhat 7.2 rocoyanna Linux - Software 1 03-27-2002 11:18 PM
RedHat 7.1 installation MagicalDaveX Linux - Software 6 10-27-2001 07:42 PM


All times are GMT -5. The time now is 11:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration