Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-02-2003, 12:09 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
libmcrpyt installation on redhat 7.3

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/
9. ldconfig

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

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

the /etc/ contains the following:
# cat /etc/

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.
Old 07-02-2003, 02:02 PM   #2
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/
Old 07-02-2003, 02:59 PM   #3
LQ Newbie
Registered: Jul 2003
Posts: 2

Original Poster
Rep: Reputation: 0
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/ /usr/lib/
7. cd ..

would using /usr/lib prefix affect the mhash ins?
Old 07-02-2003, 05:20 PM   #4
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 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 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'. 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.


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration