Michael Rennecke wrote:
Robert Hartzell <b...@rwhartzell.net> writes:

just adjust the path for mysql.
Setting that like you suggest:
LDFLAGS="-L/usr/mysql/5.1/lib
-R/usr/mysql/5.1/lib";export LDFLAGS
./configure --prefix=/usr/local/src/test
--with-mysql
change  --with-mysql to --with-mysql=/usr/mysql/5.1
should work fine... i just tested on opensolaris
build 118

For the record and the benefit of anyone else who
searches this group
about mysql.

Yup it does...
change  --with-mysql to
--with-mysql=/usr/mysql/5.1

 I got there just ahead of your suggestion but thanks
or the help.

_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

I can compile bacaula without errors, but I can't start the director.

export 
PATH=/usr/bin:/usr/ccs/bin:/etc:/usr/openwin/bin:/usr/local/bin:/usr/sfw/bin:/opt/sfw/bin:/usr/ucb:/usr/sbin

export HO=/opt
CFLAGS="-g -O2" ./configure \
  --sbindir=$HO/bacula/bin \
  --sysconfdir=$HO/bacula/etc \
  --with-mysql=/usr/mysql/5.1 \
  --enable-smartalloc \
  --with-pid-dir=$HO/bacula/bin/working \
  --with-subsys-dir=$HO/bacula/bin/working \
  --with-working-dir=$HO/bacula/working \
  --enable-bat

renne...@walhalla bin $ pfexec ./bacula start
Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
ld.so.1: bacula-dir: fatal: libmysqlclient_r.so.16: open failed: No such file 
or directory
/opt/bacula/etc/bacula-ctl-dir: line 214: 7684: Killed

The database exists. I think bacula don't find libmysqlclient_r.so. How can I 
fix this?

To get bacula to build and run on opensolaris with mysql I use this

LDFLAGS="-L/usr/mysql/5.1/lib/mysql -R/usr/mysql/5.1/lib/mysql"
export LDFLAGS;

./configure --with-mysql=/usr/mysql/5.1 (many more options omitted)

This differs slightly from an earlier post I made to this thread. I found on Opensolaris you need to append another "mysql" to the LDFLAGS statement for bacula to find the libs.

This is tested and running on snv_118. If you would like I can send you a copy of my configure script.

hth

--
 Robert W Hartzell
bear at rwhartzell.net
  RwHartzell.Net
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to