This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Installation Problem: [error while loading shared libraries]

Old posts that have not been replied to for several years.
Locked
o
oer

Installation Problem: [error while loading shared libraries]

Post by oer »

Hello,

when i am trying to install eggdrop the compiling works, but the linking fails. Even if i try to make a static version i get this error message:


---------- Yeah! that's the compiling, now the linking! ----------

Linking eggdrop... (static version)

gcc -pipe -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o dccutil.o dns.o flags.o language.o main.o mem.o misc.o misc_file.o modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o userent.o userrec.o users.o mod/*.o -L/home/jo_oer/eggdrop/tcl/lib/ -ltcl8.4 -lm -ldl -lnsl md5/md5c.o compat/*.o `cat mod/mod.xlibs`
strip ../eggdrop
Successful compile: eggdrop

make[1]: Verlassen des Verzeichnisses Verzeichnis »/home/jo_oer/eggdrop1.6.13/src«

./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory
make: *** [static] Fehler 127

I used no special parameters for ./configure, only --prefix.
I installed TCL 8.4 in my homedirectory. The variables TCLLIB and TCLINC are set correctly.

I don't know what to do, can anyone give me a hint?

Thanx,
Markus
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I havn't checked, but the --prefix argument may be causing this.

Most software uses this for the base install point, however some use it for other things too, EG base search directory.

Try configuring and compiling eggdrop without using --prefix.

To use a custom installation point, use the DEST argument for "make install"

EG
make install=/home/ppslim/myeggdrop
o
oer

Post by oer »

It's still the same problem even if i didn't use the --prefix argument

I believe that i made some mistakes during the TCL installation, i didn't use the --enable-shared option. But allthough i reinstalled TCL with it, it is still not working, what other things do i have to know when i want do build TCL with shared libraries ?

geetings,
Markus
o
oer

Post by oer »

AH it works now!

The path to the libs was not added to /etc/ld.so.conf.

After that linking works well!
Locked