slackbuilds installation of openoffice
Hello everyone,
I went to slackbuilds.org and downloaded the slackbuild for openoffice.org to my downloads folder. I then downloaded the openoffice.org source from openoffice.org website to the same folder. after doing tar -xzvf openoffice.org.tar.gz and then changing to the directory for openoffice.org I entered ls -l and it showed the slackbuild in green. So, it typed ./openoffice.org.SlackBuild as root and here's what I get for an error: root@darkstar:/home/shane/Desktop/do...openoffice.org# ./openoffice.org.SlackBuild tar: /home/shane/Desktop/downloads/openoffice.org/OOo_3.0.1_LinuxIntel_install_en-US.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors ./openoffice.org.SlackBuild: line 80: SOURCEDIR: unbound variable root@darkstar:/home/shane/Desktop/do...openoffice.org# Can someone please show me what I've done wrong and advise me on how to not make the same error next time I try to use slackbuilds? i'm new to slackware and trying to learn things the right way by going through the tutorials in the stickies at the top of the forum, but I can't figure out what went wrong in this instance. THanks!! |
you also need to download the OOo_3.0.1_LinuxIntel_install_en-US.tar.gz.
after you downloaded it, copy it to the folder that tar -xzvf openoffice.org.tar.gz had created.then type Code:
./openoffice.org.SlackBuild |
Did you issue the chmod +x openoffice.org.SlackBuild command to make the slackbuild script executable?
|
i have the OOo_3.0.1_LinuxIntel_install_en-US.tar.gz. file in my downloads folder. However when I try to move it to the openoffice.org folder that tar -xzvf openoffice.org.tar.gz created, it tells me access is denied.
I did chmod +x the openoffice.org.SlackBuild and ls -l shows it as executable in the openoffice.org folder. Thanks for the help!! |
Quote:
Brian |
The slackbuild expected to find the tar.gz file, not one already untarred. Put the slackbuild in the same directory with the tar.gz and run it again. You can do this from the downloads folder if you wish, or create a new one.
|
ok, I moved the slackbuild to the downloads directory and ran the ./openoffice.org.SlackBuild command and it started installing...thought everything was gonna work, then I get this:
/tmp/SBo/package-openoffice.org ./openoffice.org.SlackBuild: line 113: /home/shane/Desktop/downloads/desktop-fil e-fix-3.0.1.diff: No such file or directory root@darkstar:/home/shane/Desktop/downloads# sorry for being a pain, slackware is my first attempt at dealing with a distro that doesn't use a package manager. Hopefully I'll get better as I go. thanks again! |
desktop-file-fix-3.0.1.diff is included in the SlackBuild.
Make sure it is located in the working directory - together with the SlackBuild file, the source and the other files. This is how I would do it:
Hope this helps :) |
Oddly enough, what I do is...
Extract tar archive Copy file to new directory Run mc then press the enter key on the slackbuild... I don't know why, but mc lets me run the slackbuild where as the command line doesn't... In mc I don't have to use chmod, or anything. Maybe I just have a wierd installation...I don't know, I'm still learning... |
|
Out of curiosity, if chmod wasn't used, why then does mc allow me to run the script?
|
Quote:
# installpkg <packagename> http://rlworkman.net/pkgs/ |
Quote:
|
Maybe mc runs "sh programname.SlackBuild". If you do it that way, you don't have to make it executable.
|
Quote:
You may have some misconceptions about what you are doing which makes this confusing to you. A tar.gz file is a compressed archive containing any number of files and directories. The SlackBuild.tar.gz contains the SlackBuild itself and all the necessary files to build the software, except the source itself. That is contained in another tar.gz file, which should be left compressed and put in the same directory which was created when you opened the SlackBuild.tar.gz with the "tar" command. (This last step is what you didn't do which gave the the informative error message in your first post.) If you do all of the above as a normal user, you will have no permission problems. Now you have your build environment all set up, so cd into that directory, su to root, and run "sh whatever.SlackBuild". (If you copy only the SlackBuild script itself and the source into a different directory you will be missing other files necessary to the build process, hence your most recent, again informative, error message.) Now this does not actually install anything, so none of this has to do with the package manager yet. This compiles the program and packages it up in a .tgz file, which is a Slackware-appropriate package which can then be installed using installpkg (as root). The .tgz file itself is just a compressed archive itself of the program binaries and related files. Brian |
All times are GMT -5. The time now is 12:44 PM. |