clacker
Group: Members
Posts: 570
Joined: June 2004 |
|
Posted: Mar. 21 2005,22:56 |
|
Doofer, that link looked great. I can't get to it before the end of the week but that page had lots of good info on compiling and using the libraries. I might not have been running ./tools/rsync-recommended from the top of my source directory but rsync-recommended from within the tools directory.
softgun, I believe that you can do post installation instructions for any of the three (dsl, tar.gz, uci). You would need to write a script and call it from the menu you create. If you need to change or modify any file within /opt/yourdir then it can't be a uci. One of the features of the uci is it lets the user uninstall it, so if your script modifies or adds files into other directories, they won't get uninstalled like the user expects. If you make a script to call you program, and set the PATH and LD_LIBRARY_PATH variables before calling your program, any of the 3 is fine.
As far as I know, if the files in the package aren't all under either the /opt, /home, or /tmp directories you can 't make a tar.gz or uci. So I don't think you can include a /var/lib directory in a tar.gz or uci file. Some packages don't lend themselves well to being placed into /opt because other programs need to call them and would need the PATH variable set to /opt/yourdir all the time to find them. I have gotten around this by making a menu option that opens a new bash shell that runs the export commands as part of it's initialization.
I've had fairly good luck using ./configure --prefix=/opt/yourdir to put my files into the /opt directory. Many times I've had problems not with the binaries but the libraries they look for. Is the /var/lib/postgresql directory created so that other programs can use the postgresql libraries as well as postgresql itself? have you tried moving them under the /opt/oio/postgresql directory and setting LD_LIBRAY_PATH? something like:
export LD_LIBRAY_PATH=$LD_LIBRAY_PATH:/opt/oio/postgresql/lib
and then calling your binary?
|