Posted: Sun Jul 20, 2003 2:33 am Post subject: Yet another start-up problem
Hey all,
Seems lots of ppl are having start up problems, but I cant really find mine here.
Im using X11 on a 867 Mhz G4, running OS X 10.2.6.
If I try to start OOo with the Start OpenOffice script, I get a "cant find X11.app" error, and since the installer says to do it manually, so I did.
I also read somewhere in this forum to leave out the /usr/X11R6/lib part, so I did that too. I still cant get OOo to start, and not being to experienced yet (Im still learning...) I cant figure out whats wrong.
Here is what I get:
[my:~] jazz% setenv DISPLAY localhost:0
[my:~] jazz% setenv DYLD_LIBRARY_PATH/Applications/OpenOffice.org1.0.3/program:/Applications/OpenOffice.org1.0.3/program/filter:/
[my:~] jazz% cd /Applications/OpenOffice.org1.0.3/program
[my:/Applications/OpenOffice.org1.0.3/program] jazz% sh soffice
soffice: dirname: command not found
soffice: basename: command not found
soffice: [: =: unary operator expected
soffice: dirname: command not found
soffice: basename: command not found
/Applications/OpenOffice.org1.0.3/program/sopatchlevel.sh: dirname: command not found
soffice: /Applications/OpenOffice.org1.0.3/program/.bin: No such file or directory
soffice: exec: /Applications/OpenOffice.org1.0.3/program/.bin: cannot execute: No such file or directory
Of course, I have checked manually, to make sure that all the files are where they should be, and they are.
I have also asked more Linux and Unix savvy friends, and they cant figure it out either, so here I am...
Does anybody have a any clues? It would be much appreciated.
Thank you
I believe that your problem is due to these two errors:
Code:
soffice: dirname: command not found
soffice: basename: command not found
Since the startup script cannot find either the "dirname" or "basename" commands, it tries to execute a non-existent program called ".bin" instead of "soffice.bin".
To fix this problem, you need to set your PATH environment variable so that it includes the directory where these two commands are. Both "dirname" and "basename" are in the "/usr/bin" directory try executing the following command and then rerunning the OOo startup:
Posted: Sun Jul 20, 2003 11:02 am Post subject: Yet another start-up problem
Hey Patrick,
Seems you where right. This is what I get when I try what you suggested:
[my:~] jazz% ls -l /usr/bin/dirname
ls: /usr/bin/dirname: No such file or directory
[my:~] jazz% ls -l /usr/bin/basename
ls: /usr/bin/basename: No such file or directory
[my:~] jazz% echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/Users/jazz:/usr/X11R6/bin
I think you might have done a custom install of Mac OS X, and deselected the "BSD Commands" item.
Or you have a corrupted hard disk.
I guess OOo (and "Start OpenOffice.org") makes an assumption that the basic command line tools we require, are installed. I plan to try and improve checking for this condition in a future version of "Start OpenOffice.org".
I suggest you try to do a custom install of the "BSD Commands" using your original installation CD - the Installer may or may not let you. Unfortunately you have probably installed Mac OS X updates since that original installation, and strictly speaking you should re-apply those updates, but then again the Installer may not let you. The real answer is to do a clean re-install.
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
Posted: Sun Jul 20, 2003 11:48 pm Post subject: Installation method
Yes, the BSD utilities are required to run OOo's startup scripts. This is the BSD installation option that Terry & Patrick are mentioning. IIRC, the BSD Tools were not on by defualt in 10.0 and 10.1, but I think the BSD tools option was made on by default in 10.2. The grapevine indicates it's going to be turned on by default if it isn't already. I've also had issues when I've accidentally removed those from my hard drive too...
In any case, to make sure they're on there during an installation of OS X, after you choose the install destination click on the "Customize" button and make sure the BSD package is checked. It may actually be able to be installed as a standalone package off of CD1 or CD2 of your OS X installer.
Many Unix-style programs (e.g. command line tools or X11 based apps) require the standard set of BSD command line utilities to be installed and even some regular "mac" programs are starting to use them, so it's probably a good idea to get them on your box anyhow.
Posted: Mon Jul 21, 2003 11:25 am Post subject: Yet another start-up problem
Hey guys,
Thanx for all the help. As you suggested, I hadnt installed the BSD subsystem for some reason. I bought my machine used and pre-installed, so I guess thats why.
I didnt even have to boot from CD. There is an optional installer on it for just the BSD system. At least on my CD (MAC OS X 10.2)
Thought this might be good to know, for future reference.
Unfortunately, I installed this before reading Patricks post about the command lines. Everything works beautifully now. If there is a way to remove the BSD system, Id be more than happy to do it, and try those command lines for you.
One of the reasons I wanted to try OOo (Exept getting rid of MS ) was to learn more of how to use the system. All this seems to have set me on my way.
Thanx again for all the help, and let me know if I can do anything.
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
Posted: Mon Jul 21, 2003 8:22 pm Post subject:
I suspect that if you had tried to run those command lines you would have gotten a "Command not found" error.
Thanks for the heads up on what the problem was and how to work around it. Next installer we put out I'll add in an explicit check to make sure that the destination computer has the BSD package installed and if not put in a note on where they can find it on their Jag CDs. Thanks!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum