Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi ,
I have the following problem when i tried to make my application during system startup.
According to the requirement i have to start the application at the startup as a boot up application. In this case i created a link in the etc\init.d which runs a script which inturn runs my application.The problem is when the application launches it finds a library file (.so file). In normal case we place this file in a directory and set the LD_LIBRARY_PATH to point to this library. But when we use it as a startup application then the application is not able to find this library as i feel it could not load the .profile of root during system startup. So my application does not start as it could not find this library. Is there anyway to find a library file other than using the load library path setting at system startup.

yeah - change the default path that the ld program uses to search for files ... that is, change the default library load path on a system wide level.
You will definatley want to do a man on crle
before doing any of this.....
type crle at a prompt to see your current defaults. Write down the "Default Library Path" paths. Issue something like:
crle –l /usr/lib –l /usr/local/lib -l /path-to-the-librarymaking sure that you have all the paths from the "Default Library Path" added into the command using -l followed by the path to the directory where the needed library lives
(find this for sure by running ldd on your application to make sure which library it is trying to use and from where)The above has worked for me in the past for a program that needed a particular .so at bootup. In particular it has worked for loading some ssl libs before the root profile was in effect.

![]() |
e10k system board flash p...
|
Solaris 8 on AMD Athlon X...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |