SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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!!
You probably executed the tar command as root and are trying to move the file as a regular user? that's why you have permission denied.
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.
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...
I understand that, and have followed it before, but I was just asking because if it doesn't have the correct permissions, then why does mc allow it to work. Just a curious question.
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!
The how-to mentioned by BrianL is a must-read.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.