LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-27-2009, 04:16 PM   #1
msc8127
Member
 
Registered: Jan 2009
Posts: 42

Rep: Reputation: 15
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!!
 
Old 03-27-2009, 04:27 PM   #2
jrecortel
Member
 
Registered: Sep 2008
Location: Philippines
Distribution: slackware, FreeBSD
Posts: 123

Rep: Reputation: 19
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
 
Old 03-27-2009, 04:31 PM   #3
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Did you issue the chmod +x openoffice.org.SlackBuild command to make the slackbuild script executable?
 
Old 03-27-2009, 05:16 PM   #4
msc8127
Member
 
Registered: Jan 2009
Posts: 42

Original Poster
Rep: Reputation: 15
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!!
 
Old 03-27-2009, 05:39 PM   #5
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by msc8127 View Post
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
 
Old 03-27-2009, 05:40 PM   #6
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
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.
 
Old 03-27-2009, 06:16 PM   #7
msc8127
Member
 
Registered: Jan 2009
Posts: 42

Original Poster
Rep: Reputation: 15
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!
 
Old 03-27-2009, 07:07 PM   #8
Feinom
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Slackware 12.2
Posts: 40

Rep: Reputation: 17
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
 
Old 03-27-2009, 07:15 PM   #9
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 245
Blog Entries: 2

Rep: Reputation: 41
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...

Last edited by Mol_Bolom; 03-27-2009 at 07:17 PM.
 
Old 03-27-2009, 07:22 PM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

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

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

Last edited by brianL; 03-27-2009 at 07:23 PM.
 
Old 03-27-2009, 07:30 PM   #11
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 245
Blog Entries: 2

Rep: Reputation: 41
Out of curiosity, if chmod wasn't used, why then does mc allow me to run the script?
 
Old 03-27-2009, 08:13 PM   #12
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by Mol_Bolom View Post
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/
 
Old 03-27-2009, 08:21 PM   #13
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 245
Blog Entries: 2

Rep: Reputation: 41
Quote:
Originally Posted by hitest View Post
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.
 
Old 03-28-2009, 05:16 AM   #14
Feinom
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Slackware 12.2
Posts: 40

Rep: Reputation: 17
Maybe mc runs "sh programname.SlackBuild". If you do it that way, you don't have to make it executable.
 
Old 03-28-2009, 10:14 AM   #15
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by msc8127 View Post
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

Last edited by BCarey; 03-28-2009 at 10:16 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM
OpenOffice 2.0 installation olivia.jensen@mcgill Slackware 50 05-14-2006 09:35 AM
OpenOffice-1.1.0 installation prob... michelbehr Linux - Software 4 03-06-2004 02:31 PM
OpenOffice Installation moger Linux - Software 10 01-20-2004 12:34 PM
Help with OpenOffice 1.0.1 installation please! hitbob Linux - Newbie 7 10-04-2003 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration