LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-04-2008, 05:23 PM   #1
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Rep: Reputation: 47
problem with pkg install


This may come across as being really stupid to you, but I'm trying to install lua and I get the following error: (yes, i am root)

Code:
bash-3.1# ./lua.SlackBuild
tar: /home/fluxnuk3r/Downloads/lua/lua-5.1.3.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
bash-3.1#
What is wrong/how do i fix it?
 
Old 03-04-2008, 05:37 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,260

Rep: Reputation: 645Reputation: 645Reputation: 645Reputation: 645Reputation: 645Reputation: 645
It looks like you don't have the lua source in the proper place. It should be located in /home/fluxnuk3r/Downloads/lua/. Also make sure it's the right version (5.1.3) -- if it's not, you can either revert to an older version (5.1.3) or change the version number in the SlackBuild script (although there is no guarantee that this will work -- it's assuming that they haven't changed much in the newer version).
 
Old 03-04-2008, 05:48 PM   #3
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Original Poster
Rep: Reputation: 47
Thanks! That was it...
 
Old 03-04-2008, 06:42 PM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Original Poster
Rep: Reputation: 47
So what is up with this?

Code:
bash-3.1# ./openoffice.org.SlackBuild
bash: ./openoffice.org.SlackBuild: Permission denied
bash-3.1#
I downloaded both, put the source in the correct directory, entered root, and it tells me permission is denied. How can permission be denied to root?
 
Old 03-04-2008, 07:11 PM   #5
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Make the slackbuild executable:

chmod +x openoffice.org.SlackBuild

HTH
 
Old 03-04-2008, 07:20 PM   #6
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Original Poster
Rep: Reputation: 47
Ok...now I get the following error:

Code:
bash-3.1# ./openoffice.org.SlackBuild
rpm2cpio: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory
cpio: premature end of archive
bash-3.1#
I didn't think slack packages contained rpms. This is from SlackBuilds.org.
 
Old 03-04-2008, 08:27 PM   #7
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Quote:
I didn't think slack packages contained rpms.
They don't. OpenOffice is packaged as rpm's. The SlackBuild extracts and repackages them in tgz format.

Your error would seem indicate that you are missing a depends for rpm2cpio.

Could you post the output of
Code:
$ ldd /usr/bin/rpm2cpio
I get the following:
Code:
steve@moon:~$ ldd /usr/bin/rpm2cpio
        linux-gate.so.1 =>  (0xffffe000)
        librpm-4.2.so => /usr/lib/librpm-4.2.so (0xb7eb2000)
        librpmdb-4.2.so => /usr/lib/librpmdb-4.2.so (0xb7dde000)
        librpmio-4.2.so => /usr/lib/librpmio-4.2.so (0xb7d84000)
        libpopt.so.0 => /usr/lib/libpopt.so.0 (0xb7d7d000)
        librt.so.1 => /lib/librt.so.1 (0xb7d74000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7d5d000)
        libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb7d4d000)
        libc.so.6 => /lib/libc.so.6 (0xb7c0b000)
        /lib/ld-linux.so.2 (0xb7f24000)
steve@moon:~$
 
Old 03-04-2008, 08:42 PM   #8
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Original Poster
Rep: Reputation: 47
Here's mine:

Code:
bash-3.1$ ldd /usr/bin/rpm2cpio
        linux-gate.so.1 =>  (0xffffe000)
        libdb.so.2 => not found
        libz.so.1 => /usr/lib/libz.so.1 (0xb7ee4000)
        libc.so.6 => /lib/libc.so.6 (0xb7da2000)
        /lib/ld-linux.so.2 (0xb7f15000)
bash-3.1$
 
Old 03-04-2008, 10:03 PM   #9
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Well, I guess the next question is "why does your's have a dependency that mine does not?"

If you are running Slackware 12 (as I am), you may have made some changes to the stock install. Did you replace the original rpm package for some reason? Did you do an upgrade or a fresh install when you loaded Slackware-12?

Try reinstalling the original rpm package for slackware-12, rpm-4.2.1-i486-3 in slackware/ap, using upgradepkg.

(note: Only you would know if this would break something else on your box. Perhaps you made these changes for a reason.)
 
Old 03-05-2008, 08:05 AM   #10
em21701
Member
 
Registered: Feb 2008
Location: Rhode Island, USA
Distribution: Slackware12.2 & Slackware64-13
Posts: 247

Rep: Reputation: 40
Here's what I do when running scripts from slackbuilds, I'll use OpenOffice.org as an example:

1. Download the script and the source to the desktop.
2. copy the script to my home folder, right click -> extract here (in KDE)
3. then I move the original compressed file into the folder that was just created by the proir extraction (~/openoffice.org) This is optional, but I like to keep everything together.
4. copy the source from the desktop to the new directoy (~/openoffice.org) This is not optional.
5. go to a terminal window and do the following:

Code:
cd /home/<your user name>/openoffice.org
su
<password>
sh openoffice.org.SlackBuild
.....compile stuff will fly by.......
copy the filename from the line:

Moving: openoffice.org<version stuff etc.> to /tmp

then:

Code:
installpkg /tmp/<paste shift-insert>
from there you should be all set.
The readme file included in the slackbuilds download will alert you to any dependencies that have to be fully installed before you can compile the software that you are looking for.

Hope that helps
 
Old 03-05-2008, 10:57 AM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,039
Blog Entries: 52

Rep: Reputation: Disabled
I get the same as Franklin for:

Code:
$ ldd /usr/bin/rpm2cpio
Code:
linux-gate.so.1 =>  (0xffffe000)
librpm-4.2.so => /usr/lib/librpm-4.2.so (0xb7e8e000)
librpmdb-4.2.so => /usr/lib/librpmdb-4.2.so (0xb7dba000)
librpmio-4.2.so => /usr/lib/librpmio-4.2.so (0xb7d60000)
libpopt.so.0 => /usr/lib/libpopt.so.0 (0xb7d59000)
librt.so.1 => /lib/librt.so.1 (0xb7d51000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7d3a000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb7d29000)
libc.so.6 => /lib/libc.so.6 (0xb7be7000)
/lib/ld-linux.so.2 (0xb7f00000)
Did you do a full install?

Last edited by brianL; 03-05-2008 at 11:00 AM.
 
Old 03-05-2008, 04:30 PM   #12
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Original Poster
Rep: Reputation: 47
Yah, I did a full install. I didn't see any reason to do anything otherwise given this is the first time I've used Slackware.
 
Old 03-05-2008, 06:26 PM   #13
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Quote:
Originally Posted by phantom_cyph View Post
Yah, I did a full install. I didn't see any reason to do anything otherwise given this is the first time I've used Slackware.
Well, something seems different here, but I don't hava a lot to go on.

Your build is failing because you need rpm2cpio to build the slackware package from the rpms in the OpenOffice tarball. rpm2cpio will not run because you are missing a library that is not a dependency of rpm2cpio on my slackware-12 box.

Could you please post the output of the following (no need to be root):

$ ls -l /var/log/packages | grep rpm
$ uname -a
$ cat /etc/slackware-version

Thanks.
 
Old 03-05-2008, 07:35 PM   #14
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Original Poster
Rep: Reputation: 47
OK, here you are:

Code:
bash-3.1$ ls -l /var/log/packages | grep rpm
-rw-r--r-- 1 root root    8348 2008-02-02 03:09 rpm-4.2.1-i486-3
-rw-r--r-- 1 root root     757 2008-02-02 03:09 rpm2tgz-1.0-i486-1
bash-3.1$
Code:
bash-3.1$ uname -a
Linux darkstar 2.6.21.5-smp #2 SMP Tue Jun 19 14:58:11 CDT 2007 i686 Intel(R) Celeron(R) D CPU 3.33GHz GenuineIntel GNU/Linux
bash-3.1$
Code:
bash-3.1$ cat /etc/slackware-version
Slackware 12.0.0
bash-3.1$
 
Old 03-05-2008, 08:44 PM   #15
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Thanks - sorry for the "Is the computer plugged in?" question.

If you haven't tried reinstalling the official slackware rpm package, I would try that and see if you don't get better results (even though it seems to be there). Normally, I would tell you to install the package or library that is missing, in this case libdb.so.2 as seen from the ldd output. Unfortunately, the output of ldd makes it seem as though youn are running a different version of rpm package or perhaps one that was built on a diffrent system creating a different set of dependencies. I don't know why that would happen unless you installed something that overwrote the slackware version. I don't know what changes you've made to the system.

Sorry to not be of much help here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
install pkg czezz Solaris / OpenSolaris 3 06-12-2007 04:56 PM
canīt install pkg-config?? synergy2 Linux - Newbie 1 06-17-2006 01:12 AM
how do install *.pkg files deggial Linux - Newbie 3 04-01-2006 06:18 AM
where to download the pkg and to install veeraalin Solaris / OpenSolaris 1 06-17-2005 03:13 AM
How do i install a pkg jazzy_j11111 Linux - General 3 03-14-2002 09:26 AM


All times are GMT -5. The time now is 06:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration