LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackbuilds installation of openoffice (https://www.linuxquestions.org/questions/slackware-14/slackbuilds-installation-of-openoffice-714931/)

msc8127 03-27-2009 04:16 PM

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!!

jrecortel 03-27-2009 04:27 PM

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

hitest 03-27-2009 04:31 PM

Did you issue the chmod +x openoffice.org.SlackBuild command to make the slackbuild script executable?

msc8127 03-27-2009 05:16 PM

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!!

BCarey 03-27-2009 05:39 PM

Quote:

Originally Posted by msc8127 (Post 3490018)
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.

Brian

mlangdn 03-27-2009 05:40 PM

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.

msc8127 03-27-2009 06:16 PM

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!

Feinom 03-27-2009 07:07 PM

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:
  1. Untar the SlackBuild (tar zxvf openoffice.org.tar.gz).
  2. Move OOo_3.0.1_LinuxIntel_install_en-US.tar.gz into the newly created folder (openoffice.org).
  3. Enter the directory and execute the SlackBuild.

Hope this helps :)

Mol_Bolom 03-27-2009 07:15 PM

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...

brianL 03-27-2009 07:22 PM

It's all here:
http://slackbuilds.org/howto/

Or use sbopkg:
http://sbopkg.org/

Mol_Bolom 03-27-2009 07:30 PM

Out of curiosity, if chmod wasn't used, why then does mc allow me to run the script?

hitest 03-27-2009 08:13 PM

Quote:

Originally Posted by Mol_Bolom (Post 3490123)
Out of curiosity, if chmod wasn't used, why then does mc allow me to run the script?

Follow the howto that brianL posted and it will work. You can also download a Slackware package directly from Robby's site and install it :

# installpkg <packagename>

http://rlworkman.net/pkgs/

Mol_Bolom 03-27-2009 08:21 PM

Quote:

Originally Posted by hitest (Post 3490149)
Follow the howto that brianL posted and it will work. You can also download a Slackware package directly from Robby's site and install it :

# installpkg <packagename>

http://rlworkman.net/pkgs/

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.

Feinom 03-28-2009 05:16 AM

Maybe mc runs "sh programname.SlackBuild". If you do it that way, you don't have to make it executable.

BCarey 03-28-2009 10:14 AM

Quote:

Originally Posted by msc8127 (Post 3490066)
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.

Brian


All times are GMT -5. The time now is 12:44 PM.