PDA

View Full Version : Can't install on Vector Linux



new2linux
2005-08-19, 06:57
Hi there,

I am fairly new the linux world, but have the easy to use vector linux installed now and have just download the latest version of SlimServer (6.1.1-1).

When I run

rpm -Uvh slimserver-6.1.1-1.noarch.rpm

I get the folling:

error: Failed dependecies:
perl >= 5.6 is needed by slimserver-6.1.1-1
/bin/sh is needed by slimserver-6.1.1-1

Question: my Perl version 5.8.6 as show with:

perl -v
Ths is perl. v5.8.6 built for i486-linux.

So why is not picking up this dependecy ?

Also, I am not actually sure what this bin/sh depency is refering too.

Any help apreciated.

kind regards,

Adam (who is new2linux)!!!

Robin Bowes
2005-08-19, 07:31
new2linux wrote:
> When I run
>
> rpm -Uvh slimserver-6.1.1-1.noarch.rpm
>
> I get the folling:
>
> error: Failed dependecies:
> perl >= 5.6 is needed by slimserver-6.1.1-1
> /bin/sh is needed by slimserver-6.1.1-1
>
> Question: my Perl version 5.8.6 as show with:
>
> perl -v
> Ths is perl. v5.8.6 built for i486-linux.

How did you install perl? Did you use an rpm or build from source or is
it part of the base OS, i.e. you haven't installed perl - it was already
there when you installed vector linux?


> So why is not picking up this dependecy ?

What is the output from the following command on your system:

rpm -q perl

If this returns "package perl not installed" then perl was not installed
from an RPM so the rpm database doesn't know about it and returns the
dependency error you see above.

> Also, I am not actually sure what this bin/sh depency is refering too.

/bin/sh is the default shell on a lot of unix/linux distros.

You can see what shells you have available to you like this:

cat /etc/shells

You can see what your own personal shell is like this;

grep <login> /etc/passwd

Where <login> is your login name.

You should see something like this:

robin:x:502:502::/home/robin:/bin/bash

On my system, /bin/sh is a symlink to /bin/bash (bash behaves
differently according to the name by which it was called).

R.
--
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?

new2linux
2005-08-19, 08:11
Hi Robin,

thanks for coming back so quick:

>What is the output from the following command on your system:
>
> rpm -q perl
>
>If this returns "package perl not installed" then perl was not
>installed from an RPM so the rpm database doesn't know about it
>returns the dependency error you see above.

Spot on Rob. Do i need to install Perl from scratch, or is it possible just to regiester it in RPM?


>/bin/sh is the default shell on a lot of unix/linux distros.
>On my system, /bin/sh is a symlink to /bin/bash (bash behaves
>differently according to the name by which it was called).

I have /bin/bash as well, altough I'm not sure if the symlink is setup. Is this done automatically, or do I need to something like:

ln -s /bin/sh /bin/bash

cheers,
Adam.

Robin Bowes
2005-08-19, 08:43
new2linux wrote:
>
> Spot on Rob. Do i need to install Perl from scratch, or is it possible
> just to regiester it in RPM?

The easiest thing to do would be to download a perl RPM and install it.

You could (and possibly should?) remove the existing version of perl
from your system first, but without knowing how Vector linux works, that
might cause problems.

Where is perl installed? Try:

which perl

>>/bin/sh is the default shell on a lot of unix/linux distros.
>>On my system, /bin/sh is a symlink to /bin/bash (bash behaves
>>differently according to the name by which it was called).
>
>
> I have /bin/bash as well, altough I'm not sure if the symlink is setup.
> Is this done automatically, or do I need to something like:
>
> ln -s /bin/sh /bin/bash

This should be done as part of the bash installation:

rpm -ql bash| head
/bin/bash
/bin/sh
/etc/skel/.bash_logout
/etc/skel/.bash_profile
/etc/skel/.bashrc
/usr/bin/bashbug-32
/usr/share/doc/bash-3.0
/usr/share/doc/bash-3.0/CHANGES
/usr/share/doc/bash-3.0/COMPAT
/usr/share/doc/bash-3.0/FAQ

However, ln -s /bin/sh /bin/bash will add the link.

I'm not sure if rpm is checking the db or the filesystem when it throws
this dependency error.

An alternate approach would be to:

1. Add the symlink for /bin/sh
2. install slimserver using:

rpm -Uvh --force slimserver-6.1.1-1.noarch.rpm

But I'd try and work out why you've got perl installed on an rpm-based
system without it being registered in the rpm db. Vector Linux *is* an
rpm-based system, isn't it?

R.
--
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?

Robin Bowes
2005-08-19, 08:52
Robin Bowes wrote:
> Vector Linux *is* an rpm-based system, isn't it?

That's your problem, I suspect. From my brief scan of the Vector Linux
website, it is based on slackware which uses a package system not RPM.

I suggest you just install from the source tarball:

http://slimdevices.com/downloads/SlimServer_v6.1.1/SlimServer_v6.1.1.tar.gz

R.
--
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?

new2linux
2005-08-19, 13:07
Thanks for the update Robin.

I won't be able to check this until next week, but hopefully the tarball will sort it out.

regards,

Adam.

>I suggest you just install from the source tarball:

new2linux
2005-08-22, 03:48
Robin,

the tarball worked a treat. It all works fine now.

thanks again,

Adam.

>I suggest you just install from the source tarball:[/QUOTE]