ryancw
06-13-2006, 07:22 PM
As a regular user (named test1) I downloaded the tar.gz version of SeaMonkey102. I followed the instructions from the "system requirements" SeaMonkey web page for "Manual installation with the tar.gz Archive." I installed it in test1's home directory. The browser seemed to work well, so I want to make it available to all users.
I found the "Multi-User Linux Installations" instructions on the same web page and tried to follow them. I thought that ~/test1 would be an odd place for an application, so I logged in as root and copied the tar.gz to /opt/seamonkey102. Then I followed the instructions to untar it to /opt/seamonkey102/seamonkey.
Then, still root, I created the scipt as recommended:
#!/bin/sh
dist_bin=`dirname $0`
MOZILLA_FIVE_HOME=$dist_bin
LD_LIBRARY_PATH=$dist_bin
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
$dist_bin/regxpcom
$dist_bin/regchrome
touch $dist_bin/chrome/user-skins.rdf $dist_bin/chrome/user-locales.rdf
I saved the above script as /opt/seamonkey102/seamonkey/MultiUserInstallScript. Then I made it executable with chmod u+x.
Then I ran the script, but got this error message:
[root@ryanlibranet:/opt/seamonkey102/seamonkey]# ./MultiUserInstallScript
$0
$0
touch: cannot touch `$0/chrome/user-skins.rdf': No such file or directory
touch: cannot touch `$0/chrome/user-locales.rdf': No such file or directory
[root@ryanlibranet:/opt/seamonkey102/seamonkey]#
Any advice? I don't know a thing about programming in the Bourne shell, but it looks to my untrained eye that the script wants the variable dist_bin to be the name of the directory in which the script sits (in my case, /opt/seamonkey102/seamonkey, but someone's not getting the message, and is thinking that the dist_bin is called $0.
I found the "Multi-User Linux Installations" instructions on the same web page and tried to follow them. I thought that ~/test1 would be an odd place for an application, so I logged in as root and copied the tar.gz to /opt/seamonkey102. Then I followed the instructions to untar it to /opt/seamonkey102/seamonkey.
Then, still root, I created the scipt as recommended:
#!/bin/sh
dist_bin=`dirname $0`
MOZILLA_FIVE_HOME=$dist_bin
LD_LIBRARY_PATH=$dist_bin
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
$dist_bin/regxpcom
$dist_bin/regchrome
touch $dist_bin/chrome/user-skins.rdf $dist_bin/chrome/user-locales.rdf
I saved the above script as /opt/seamonkey102/seamonkey/MultiUserInstallScript. Then I made it executable with chmod u+x.
Then I ran the script, but got this error message:
[root@ryanlibranet:/opt/seamonkey102/seamonkey]# ./MultiUserInstallScript
$0
$0
touch: cannot touch `$0/chrome/user-skins.rdf': No such file or directory
touch: cannot touch `$0/chrome/user-locales.rdf': No such file or directory
[root@ryanlibranet:/opt/seamonkey102/seamonkey]#
Any advice? I don't know a thing about programming in the Bourne shell, but it looks to my untrained eye that the script wants the variable dist_bin to be the name of the directory in which the script sits (in my case, /opt/seamonkey102/seamonkey, but someone's not getting the message, and is thinking that the dist_bin is called $0.