Subject: set LD_LIBRARY_PATH to /usr/pkg/lib/mysql (Was Re: snort-mysql)
To: None <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
Date: 05/18/2002 20:37:02
>I've emulated the snort-pgsql Makefile to try to create a mysql happy
>snort. However, I get an error where it doesn't find the libmysql.so
>files when I run snort unless I set LD_LIBRARY_PATH to /usr/pkg/lib/mysql.
>I thought buildlink magically took care of this, but I've not spent
>time looking at buildlink every yet. help, please?
note that perl also has this problem if you try to use the
databases/p5-DBD-mysql pkg. in this case, of course, relinking perl
with the correct rpath to the mysql library isn't really an option.
also note that suid programs will *ignore* any LD_LIBRARY_PATH
settings, so suid programs that want to use mysql will need wrappers...
|-----< "CODE WARRIOR" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."