Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: /usr/bin/ld: cannot find -lmysqlclient  (Read 10532 times)

0 Members and 1 Guest are viewing this topic.

lonewolf

  • Guest
/usr/bin/ld: cannot find -lmysqlclient
« on: March 05, 2006, 07:18:10 PM »

Hi,

Excuse my bad english, i'm a dutch speaking guy!

I want to install anope 1.7.* with mysql support on a redhat interprise 4.0 server.

Installed are:

MySQL-devel-4.1.11-0
MySQL-client-4.1.11-0
MySQL-server-4.1.11-0
mysql-shared-4.1.10a-3

The libs:

/usr/bin/libmysqlclient.so
/usr/lib/libmysqlclient.so.14.0.0
/usr/lib/mysql/libmysqlclient.so.14.0.0
/usr/lib/mysql/libmysqlclient.so.14
/usr/lib/libmysqlclient.so.14

The error when i do make:
(i did with mysql support an the ./Config found the mysql)

gcc -pipe -g -O2 -I/usr/include/mysql  -pthread -export-dynamic actions.o base64.o botserv.o channels.o chanserv.o commands.o compat.o config.o datafiles.o encrypt.o events.o helpserv.o hostserv.o init.o ircd.o language.o list.o log.o mail.o main.o memory.o memoserv.o messages.o misc.o modules.o news.o nickserv.o operserv.o process.o send.o servers.o sessions.o slist.o sockutil.o timeout.o users.o  rdb.o  mysql.o   -lnsl -lresolv -lbsd -lmysqlclient   -ldl  -o services
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld gaf exit-status 1 terug
make[1]: *** [services] Fout 1

My question:

How can i fix this so the makefile (i think) looks in the good place for the lmysqlclient.

And how does a linux newbie like myself fix that ;)

Thank you
Logged

Pieter Bootsma

  • Team
  • *
  • Offline Offline
  • Posts: 189
    • http://geniusdex.net/
(No subject)
« Reply #1 on: March 05, 2006, 07:59:12 PM »

It's unable to link to the mysql client library. I have no experience with RedHat in it's current form so i have no clue in what package that library is hiding. You could locate libmysqlclient.so on your system and if that is found make sure it is in your LD_PATH.
Logged

lonewolf

  • Guest
(No subject)
« Reply #2 on: March 05, 2006, 08:14:04 PM »

And where do i find the LD_PATH?

In the makefile or...?

thank you
Logged

Dave Robson

  • Team
  • *
  • Offline Offline
  • Posts: 357
(No subject)
« Reply #3 on: March 05, 2006, 08:32:32 PM »

LD_PATH is a system environment veriable, it isnt anything to do with anope per-say.
Logged

lonewolf

  • Guest
(No subject)
« Reply #4 on: March 05, 2006, 08:39:25 PM »

Quote
And how does a linux newbie like myself fix that ;)


Your probably right, only... i dont have a clue how to find the LD_PATH and if i find it i still wont know what to do with it...

I better keep my services running without mysql support i guess :D

Thank you
Logged

lonewolf

  • Guest
(No subject)
« Reply #5 on: March 06, 2006, 12:26:07 PM »

Got it working!

I removed the mysql-shared.x from my server and installed mysql-shared-compat.x

Did make clean an restarted ./Config

Anope installed without a problem with mysql and everything works.

Maybe this helps others with similar problems.
Logged
Pages: [1]   Go Up