Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
03-04-2008, 05:23 PM
|
#1
|
|
Senior Member
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Rep:
|
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?
|
|
|
|
03-04-2008, 05:37 PM
|
#2
|
|
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,186
|
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).
|
|
|
|
03-04-2008, 05:48 PM
|
#3
|
|
Senior Member
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Original Poster
Rep:
|
Thanks! That was it...
|
|
|
|
03-04-2008, 06:42 PM
|
#4
|
|
Senior Member
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Original Poster
Rep:
|
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?
|
|
|
|
03-04-2008, 07:11 PM
|
#5
|
|
Senior Member
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253
Rep:
|
Make the slackbuild executable:
chmod +x openoffice.org.SlackBuild
HTH
|
|
|
|
03-04-2008, 07:20 PM
|
#6
|
|
Senior Member
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Original Poster
Rep:
|
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.
|
|
|
|
03-04-2008, 08:27 PM
|
#7
|
|
Senior Member
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253
Rep:
|
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:~$
|
|
|
|
03-04-2008, 08:42 PM
|
#8
|
|
Senior Member
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Original Poster
Rep:
|
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$
|
|
|
|
03-04-2008, 10:03 PM
|
#9
|
|
Senior Member
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253
Rep:
|
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.)
|
|
|
|
03-05-2008, 08:05 AM
|
#10
|
|
Member
Registered: Feb 2008
Location: Rhode Island, USA
Distribution: Slackware12.2 & Slackware64-13
Posts: 241
Rep:
|
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
|
|
|
|
03-05-2008, 10:57 AM
|
#11
|
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 14.0 // Desktop: Slackware64 14.0 // Netbook: Slackware 14.0
Posts: 6,176
|
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.
|
|
|
|
03-05-2008, 04:30 PM
|
#12
|
|
Senior Member
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Original Poster
Rep:
|
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.
|
|
|
|
03-05-2008, 06:26 PM
|
#13
|
|
Senior Member
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253
Rep:
|
Quote:
Originally Posted by phantom_cyph
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.
|
|
|
|
03-05-2008, 07:35 PM
|
#14
|
|
Senior Member
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Original Poster
Rep:
|
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$
|
|
|
|
03-05-2008, 08:44 PM
|
#15
|
|
Senior Member
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:18 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|