PDA

View Full Version : problem installing 6.2.1 on Mandriva 2006.0



Pooh22
2005-11-18, 03:54
Hi all

I'm trying to install the slimserver rpm for 6.2.1 on my laptop, running
Mandriva 2006.0. It's not working, so far. I had similar problems when I
installed an older version on Mandriva 2005LE, but I guess I managed to
solve it that time...

The problem I see in /tmp/slimserver.log is:
"Can't locate auto/DBI/connect.al in @INC" (...)
/usr/local/slimserver/Slim/DataStores/DBI/DataModel.pm line 147

which is:
$dbh = DBI->connect($source, $username, $password, {
RaiseError => 1,
AutoCommit => 0,
PrintError => 1,
Taint => 1,
RootClass => "DBIx::ContextualFetch"
});

I tried adding perl module packages from Mandriva and using cpan directly,
but either there something else or I haven't found the right package yet.

Any idea on how to solve this?

If it is a module problem, I wonder why the correct module packages are not
listed in the dependencies of the RPM, it shouldn't be difficult to add all
te perl-... packages to make it work out of the box?

TIA

Simon

Robin Bowes
2005-11-18, 04:37
Simon Oosthoek said the following on 18/11/2005 10:54:
> Hi all
>
> I'm trying to install the slimserver rpm for 6.2.1 on my laptop, running
> Mandriva 2006.0. It's not working, so far. I had similar problems when I
> installed an older version on Mandriva 2005LE, but I guess I managed to
> solve it that time...
>
> The problem I see in /tmp/slimserver.log is:
> "Can't locate auto/DBI/connect.al in @INC" (...)
> /usr/local/slimserver/Slim/DataStores/DBI/DataModel.pm line 147
>
> which is:
> $dbh = DBI->connect($source, $username, $password, {
> RaiseError => 1,
> AutoCommit => 0,
> PrintError => 1,
> Taint => 1,
> RootClass => "DBIx::ContextualFetch"
> });
>
> I tried adding perl module packages from Mandriva and using cpan directly,
> but either there something else or I haven't found the right package yet.
>
> Any idea on how to solve this?
>
> If it is a module problem, I wonder why the correct module packages are not
> listed in the dependencies of the RPM, it shouldn't be difficult to add all
> te perl-... packages to make it work out of the box?

This might be of use to you.

I don't run Mandriva - I did the install documented on the following
page just to see what was required to get it to work;

http://wiki.slimdevices.com/index.cgi?SlimserverOnMandrivaLinuxLE2005

R.

--
http://robinbowes.com

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

Pooh22
2005-11-18, 06:41
On Fri, Nov 18, 2005 at 11:37:11AM +0000, Robin Bowes wrote:
> Simon Oosthoek said the following on 18/11/2005 10:54:
> > Hi all
> >
> > I'm trying to install the slimserver rpm for 6.2.1 on my laptop, running
> > Mandriva 2006.0. It's not working, so far. I had similar problems when I
> > installed an older version on Mandriva 2005LE, but I guess I managed to
> > solve it that time...
>
> This might be of use to you.
>
> I don't run Mandriva - I did the install documented on the following
> page just to see what was required to get it to work;
>
> http://wiki.slimdevices.com/index.cgi?SlimserverOnMandrivaLinuxLE2005
>

Thanks, that worked for me, just running the buildmodules script was enough
on top of what I'd already done before to try and get it working.

I suppose this is not the most convenient way to install slimserver, I do
hope some people are working on improving the "working out of the box" thing
for rpm packages!

Cheers

Simon

Robin Bowes
2005-11-18, 07:40
Simon Oosthoek said the following on 18/11/2005 13:41:
> On Fri, Nov 18, 2005 at 11:37:11AM +0000, Robin Bowes wrote:
>
>>Simon Oosthoek said the following on 18/11/2005 10:54:
>>
>>>Hi all
>>>
>>>I'm trying to install the slimserver rpm for 6.2.1 on my laptop, running
>>>Mandriva 2006.0. It's not working, so far. I had similar problems when I
>>>installed an older version on Mandriva 2005LE, but I guess I managed to
>>>solve it that time...
>>
>>This might be of use to you.
>>
>>I don't run Mandriva - I did the install documented on the following
>>page just to see what was required to get it to work;
>>
>>http://wiki.slimdevices.com/index.cgi?SlimserverOnMandrivaLinuxLE2005
>>
>
>
> Thanks, that worked for me, just running the buildmodules script was enough
> on top of what I'd already done before to try and get it working.
>
> I suppose this is not the most convenient way to install slimserver, I do
> hope some people are working on improving the "working out of the box" thing
> for rpm packages!

Simon,

It works fine on other platforms.

I'm not sure why the modules are not present on the Mandrake/Mandriva
platform.

R.
--
http://robinbowes.com

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

Pooh22
2005-11-21, 17:08
On Fri, Nov 18, 2005 at 02:40:30PM +0000, Robin Bowes wrote:
> Simon Oosthoek said the following on 18/11/2005 13:41:
> > On Fri, Nov 18, 2005 at 11:37:11AM +0000, Robin Bowes wrote:
> >
> >>Simon Oosthoek said the following on 18/11/2005 10:54:
> >>
> >>>Hi all
> >>>
> >>>I'm trying to install the slimserver rpm for 6.2.1 on my laptop, running
> >>>Mandriva 2006.0. It's not working, so far. I had similar problems when I
> >>>installed an older version on Mandriva 2005LE, but I guess I managed to
> >>>solve it that time...
> >>
> It works fine on other platforms.
>
> I'm not sure why the modules are not present on the Mandrake/Mandriva
> platform.
>

Someone on the Mandriva Cooker list thought it might have something to
do with the dropping of threading support in perl on Mandriva. It was
considered unstable and nobody complained at the time. I'd never have
linked it to this problem, since I have no experience with threaded perl
and I didn't even know slimserver was using that... (is it???)

Cheers

Simon

Robert Goldman
2006-01-22, 07:47
Some of these problems seem to be dependency issues, don't they? Would it be appropriate to try to fix them by adding a slightly-modified spec file for Mandriva so that Mandriva-specific RPMs could be built? Possibly handled through Mandriva's "contrib" repository?
I'm not a huge expert on this, but I have built a couple of Mandriva RPMs, and would be willing to help.

Triode
2006-01-22, 08:14
The slimserver rpm ships with prebuilt modules for the perl achitecture:
i386-linux-thread-multi

This used to work fine (I seem to remember with Mandrake), but with recent Mandrake/Mandravia the architecure for the default perl is:
i386-linux

Hence to run on Mandravia you need to run the build script to rebuild the shipped modules for the architecture i386-linux.

You will probably get different error messages depending on how many of the slim shipped modules you already have installed elsewhere.

Adrian

hkfind
2006-02-01, 23:52
Hi Robert,

Is it possible to create a rpm for Mandriva 2006? I am really frustrated to the installation.


Some of these problems seem to be dependency issues, don't they? Would it be appropriate to try to fix them by adding a slightly-modified spec file for Mandriva so that Mandriva-specific RPMs could be built? Possibly handled through Mandriva's "contrib" repository?
I'm not a huge expert on this, but I have built a couple of Mandriva RPMs, and would be willing to help.

CavesOfTQLT
2006-02-02, 04:01
Hi hkfind... Try the following (streamlined from Robin Bowes' excellent wiki entry - thanks Robin!):

Install Mandriva Linux 2005 or 2006 version. Use the Mandrake Control Centre to install the latest updates.

Go to the easyurpmi site here (http://easyurpmi.zarb.org/) to get the latest sources for your chosen version. Section 1 is already set for 2006 so go straight to section 2. Though you can use the dropdown boxes to select alternative sites, I just left them as is and ticked the source: main and source: update boxes on the Core distribution section. Click on proceed to section 3 whereby you'll get the urpmi coding to use in a later step. For the 2006 version it should look something like this:
urpmi.addmedia --update updates ftp://ftp.caliu.info/pub/distribucions/mandrake/official/updates/2006.0/main_updates/ with media_info/hdlist.cz
urpmi.addmedia main ftp://ftp.caliu.info/pub/distribucions/mandrake/official/2006.0/i586/media/main with media_info/hdlist.cz
Fire up a shell.

Log in as root (if not already) by using:

su

Using the urpmi coding from above, copy and paste into the shell. Again, leave it to do its thing for a while. You may need to hit the return key to complete the last one as the copy & paste process sometimes fails to pick up the final carriage return.

Once the command prompt returns, download a version of SlimServer by using:

wget http://www.slimdevices.com/downloads/nightly/latest/6.2.2/slimserver-2006_MM_DD-1.noarch.rpm

where MM is the current month, DD the current day. Hit return & let it do its stuff.

Once downloaded install it by using:

urpmi slimserver-2006_MM_DD-1.noarch.rpm

Now see if perl-devel is available on the system by using:

urpmi perl-devel
It'll come back with either perl-devel is already installed, or it will do the install for you.

Now see if gcc is installed by using:

urpmi gcc
Again, see what the system says...

Now see if libexpat0-devel is available by using:

urpmi libexpat0-devel

Now we should be able to build the perl modules required for SlimServer, so change into the Bin directory using:

cd /usr/local/slimserver/Bin
and build away using:

./build-perl-modules.pl
And, fingers crossed, we should be able to start SlimServer with:

service slimserver start

Don't forget to open the required ports; 3483/tcp, 3483/udp and 9000/tcp using the firewall in Mandrake Control Centre.

Good Luck!