Re: Where to have my .so files install?
On Saturday 19 April 2008 02:47:28 cpghost wrote: On Fri, 18 Apr 2008 20:24:09 -0400 Aryeh M. Friedman [EMAIL PROTECTED] wrote: Adam J Richardson wrote: Hi all. I'm writing a program which uses .so files as plugins. Now I need to decide where on the filesystem to install the plugins. I don't want to clutter the system locations like /lib and /usr/lib. Can anyone suggest a decent install location? Google doesn't help much with this. TiA, Adam J Richardson /usr/local/lib To expand a bit: don't put your own stuff in /lib or /usr/lib, since this is used by FreeBSD's userland itself. On FreeBSD, third party stuff goes into /usr/local/{lib,bin,etc,...}. See hier(7). I actually put my own stuff in /opt, which follows /usr/local layout, because ports use /usr/local and I don't want to risk some port installing over or deleting (part of) my apps. It's easy to set up: mkdir /opt mtree -ude -f /etc/mtree/BSD.local.dist -p /opt Add /opt/bin, /opt/sbin to path in /etc/login.conf. Add /opt/man to OPTIONAL_MANPATH in /etc/manpath.config Add a MANPATH_MAP in there too. Delete the users' .profile line that overrides the PATH variable (I really wish they'd take that outof the skel). Add /opt/etc/rc.d to local_startup in /etc/rc.conf Add /opt/lib to ldconfig_paths in /etc/rc.conf -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Where to have my .so files install?
On Sat, Apr 19, 2008 at 11:21:25AM +0200, Mel wrote: Adam J Richardson wrote: Hi all. I'm writing a program which uses .so files as plugins. Now I need to decide where on the filesystem to install the plugins. I don't want to clutter the system locations like /lib and /usr/lib. Can anyone suggest a decent install location? Google doesn't help much with this. When I'm developing stuff, I often put everything in ${HOME}/local. You will probably have to set LD_LIBRARY_PATH to ${HOME}/local/lib for the linker to see the libraries. When I am satisfied that I have a mature application or libary, I install to /usr/local. Happy coding! Gordon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Where to have my .so files install?
Hi all. I'm writing a program which uses .so files as plugins. Now I need to decide where on the filesystem to install the plugins. I don't want to clutter the system locations like /lib and /usr/lib. Can anyone suggest a decent install location? Google doesn't help much with this. TiA, Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Where to have my .so files install?
Adam J Richardson wrote: Hi all. I'm writing a program which uses .so files as plugins. Now I need to decide where on the filesystem to install the plugins. I don't want to clutter the system locations like /lib and /usr/lib. Can anyone suggest a decent install location? Google doesn't help much with this. TiA, Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] /usr/local/lib ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Where to have my .so files install?
On Fri, 18 Apr 2008 20:24:09 -0400 Aryeh M. Friedman [EMAIL PROTECTED] wrote: Adam J Richardson wrote: Hi all. I'm writing a program which uses .so files as plugins. Now I need to decide where on the filesystem to install the plugins. I don't want to clutter the system locations like /lib and /usr/lib. Can anyone suggest a decent install location? Google doesn't help much with this. TiA, Adam J Richardson /usr/local/lib To expand a bit: don't put your own stuff in /lib or /usr/lib, since this is used by FreeBSD's userland itself. On FreeBSD, third party stuff goes into /usr/local/{lib,bin,etc,...}. See hier(7). As to plugins: if you've got many of them, it's better to group them in a subdirectory of /usr/local/lib: /usr/local/lib/${YOUR_PROGNAME}/*.so and dlopen(3) them using this path. -cpghost -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]