LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   problem with pkg install (https://www.linuxquestions.org/questions/slackware-14/problem-with-pkg-install-625715/)

phantom_cyph 03-04-2008 05:23 PM

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?

T3slider 03-04-2008 05:37 PM

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

phantom_cyph 03-04-2008 05:48 PM

Thanks! That was it...

phantom_cyph 03-04-2008 06:42 PM

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?

Franklin 03-04-2008 07:11 PM

Make the slackbuild executable:

chmod +x openoffice.org.SlackBuild

HTH

phantom_cyph 03-04-2008 07:20 PM

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.

Franklin 03-04-2008 08:27 PM

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:~$


phantom_cyph 03-04-2008 08:42 PM

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$


Franklin 03-04-2008 10:03 PM

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

em21701 03-05-2008 08:05 AM

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

brianL 03-05-2008 10:57 AM

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?

phantom_cyph 03-05-2008 04:30 PM

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.

Franklin 03-05-2008 06:26 PM

Quote:

Originally Posted by phantom_cyph (Post 3079327)
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.

phantom_cyph 03-05-2008 07:35 PM

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$


Franklin 03-05-2008 08:44 PM

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.


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