Load, make shared objects (.so libraries) available in Unix, script example

By neokrates, written on May 21, 2010

howto

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 29 views
Rate it
Ad
Poll
  • Best shells (or command line language) are?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

New libraries need to be made available for the executables. ldconfig with /etc/ld.so.conf file could be used for that.

Software:

✔ Ubuntu *

Should also work for:

Any Linux distro

Example: add xulrunner-1.9, if it is not yet installed, make .so objects available for all executables.

1
2
3
4
5
6
7
8
 problem=$(dpkg -s xulrunner-1.9|grep installed)
 echo Checking for libxul: $problem
 if [ "" == "$problem" ]; then
      echo "No libxul. Setting up libxul"
      sudo apt-get --force-yes --yes install xulrunner-1.9
      echo "/usr/lib/xulrunner-1.9/">>/etc/ld.so.conf
      ldconfig
 fi
Be Sociable, Share!
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)
0 votes 'YES'  0 votes 'NO'


TAGS

SOCIAL
Be Sociable, Share!

INCOMING SEARCH TERMS


Leave a Reply