PDA

View Full Version : ANNOUNCE: Gentoo official ebuild forSqueezeCenter 7 beta nightlies



hickinbottoms
2008-01-07, 05:45
I'm pleased to announce that an official Gentoo ebuild is now available
in Portage, supporting a recently nightly initially. Many thanks to Joe
Peterson for working with me to refine it to this point.

We'd appreciate it if you could test this as much as possible so that we
can be sure it's correct prior to the formal release of 7.0. Only do
this, of course, if you're happy working with the beta SqueezeCenter and
you want to be using version 7.

At the moment the package is marked as unstable for x86 only, since
that's the only architecture that Joe maintains.

INSTALLATION PROCEDURE
-----------------------------------

1. Remove any existing SlimServer/SqueezeCenter installation. This
means you'll lose your preferences and plugins, but hopefully
you'll know how to set things up again.
2. "emerge sync" to update your portage and ensure it contains the
new package.
3. Add the line "media-sound/squeezecenter ~x86" to your
/etc/portage/package.keywords file (you may need to create that
directory and file if they don't already exist). This is necessary
because the package is marked as unstable until it has had wider
testing.
4. If you want support for other codecs etc then you can add any of
the "alac avahi bonjour flac lame musepack ogg wavpack" keywords
to the package. To do this add a line like
"media-sound/squeezecenter lame flac" to /etc/portage/package.use
(you'll need to create that file if it doesn't yet exist). Note
that the embedded binaries shipped with SqueezeCenter are stripped
out by this this build so you'll need to do this if you require them.
5. Install the build. "emerge -aDvt squeezecenter" will show you what
will be installed, request confirmation and then install it. If
you've not yet got MySQL installed then that will also be
installed, which might take a while for you.
6. If you've not previously had MySQL installed and working then
follow the displayed instructions for configuring MySQL, then
start it with "/etc/init.d/mysql start".
7. Follow the instructions displayed for configuring the database for
SqueezeCenter ("emerge --config ..."), and then start
SqueezeCenter ("/etc/init.d/squeezecenter start").
8. Browse to the web interface and finish configuration, then it's
all yours!

If you're running on a non-x86 architecture (amd64/ppc etc) then
additional steps are required for testing. Instructions for doing that
for PPC can be seen here (similar steps will work for amd64 or other
architectures):
http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#masked
Please remember to file a Gentoo bug to add your keyword officially if
you find it works (but check there isn't an existing bug to do that first).

The build will use the MySQL package from Portage rather than the
embedded MySQL bundled with SqueezeCenter. There are technical reasons I
could go into but if that causes any problems for people I'd be
interested in hearing about them as I would expect this to be OK for people.

The build currently installs the nightly from 2nd January 2008.
Unfortunately the naming of the nightly releases is currently preventing
any other Gentoo nightlies being put together. Hopefully that will be
fixed (I've formally filed it as bug#6546
[http://bugs.slimdevices.com/show_bug.cgi?id=6546] - show it your love
and your vote if you use Gentoo). When that's done I'll try to get
periodic updates for newer nightlies out. I'll also get the official 7.0
out when that is released.

If you could provide feedback in this thread that would be useful.

Many thanks,
Stuart

Robin Bowes
2008-01-07, 06:12
Stuart Hickinbottom wrote:

>
> If you could provide feedback in this thread that would be useful.
>

With a little help from Stuart, I have successfully installed this on my
Kurobox HG (ppc platform).

I think the only couple of nits I ran into was I had to manually emerge
sudo and also add this line to /etc/portage/package.use:

media-sound/squeezecenter mysql

Other than that it seems to be working just fine.

Thanks Stuart!

R.

LavaJoe
2008-01-07, 08:09
Stuart Hickinbottom wrote:

>
> If you could provide feedback in this thread that would be useful.
>

With a little help from Stuart, I have successfully installed this on my
Kurobox HG (ppc platform).

I think the only couple of nits I ran into was I had to manually emerge
sudo and also add this line to /etc/portage/package.use:

media-sound/squeezecenter mysql

Other than that it seems to be working just fine.


Have you tried it with the one in portage (and without adding that line to /etc/portage/package.use)? sudo is a dep now, and the mysql keyword is no longer used - just want to make sure you are not still hitting these issues with the released ebuild...

-Thanks, Joe

Robin Bowes
2008-01-07, 09:56
LavaJoe wrote:

> Have you tried it with the one in portage

Yes...

> (and without adding that line to /etc/portage/package.use)?

....No!

I'll unmerge and try again when I get chance.

> sudo is a dep now, and the mysql keyword
> is no longer used - just want to make sure you are not still hitting
> these issues with the released ebuild...

Would you prefer I unmerge mysql as well and see if emerging
squeezecenter pulls in the mysql ebuild too?

R.

LavaJoe
2008-01-07, 10:11
If you have time to unmerge mysql as well, sure, it wouldn't hurt, but I'm pretty sure the ebuild handles that dep OK.

BTW, if anyone else out there has tested successfully on an arch, just post here, and when I open a bug to request keywords, I'll add your arch. I'll also post the link to the bug here, so after that, just post a comment on the bug.

-Joe

ninjabase
2008-01-07, 11:54
Hi! Success!

after trying to install squeezecenter from the tarball (before the package ebuild was submitted), i have now emerged the ebuild, and it's working fine, no errors so far!

Kudos!

LavaJoe
2008-01-07, 12:32
Since 7.0 is in beta status, I have changed the gentoo ebuild to be a beta version. This will ensure that when the 7.0 official release comes out, Gentoo will consider this an *upgrade*.

The ramification of this change is then if you "emerge --sync" the gentoo tree (it should appear there in the next few hours) and re-update, it will look like it is *downgrading* SqueezeCenter. This is not true, of course; you'll be reinstalling the same thing, but you should go ahead and let it reinstall.

-Joe

LavaJoe
2008-01-07, 12:33
Hi! Success!

after trying to install squeezecenter from the tarball (before the package ebuild was submitted), i have now emerged the ebuild, and it's working fine, no errors so far!

Kudos!

Great! Let us know here if you are *not* on x86...

LavaJoe
2008-01-07, 13:39
If you have an Linux architecture (except x86, amd64, and ppc) on which SqueezeCenter works, add a comment to that effect to the bug here:

http://bugs.gentoo.org/show_bug.cgi?id=204813

Thanks, Joe

Ron Olsen
2008-01-10, 13:30
Just installed the latest SqueezeCenter ebuild (7.0_beta20080108) on my Gentoo system and it works fine. I followed the installation procedure posted earlier and had no problems.

I especially like the integration of Rhapsody and other online services, but I miss the XM Radio plugin. Any chance of getting official support for this?

hickinbottoms
2008-01-10, 17:08
Thanks for the report - that's good to hear.

I don't know of a SC7 version of the XMRadio plugin, I'm afraid, and it
seems you're not the only one waiting:
http://forums.slimdevices.com/showthread.php?p=253909

Stuart

Ron Olsen wrote:
> Just installed the latest SqueezeCenter ebuild (7.0_beta20080108) on my
> Gentoo system and it works fine. I followed the installation procedure
> posted earlier and had no problems.
>
> I especially like the integration of Rhapsody and other online
> services, but I miss the XM Radio plugin. Any chance of getting
> official support for this?
>
>
>

ninjabase
2008-01-20, 10:59
hmm latest beta - 20080115 - gives errors when installing.
It seems as if Squeezecenter is trying to download and install JSON-XS 1.5 which is not available.

I already have JSON-XS 1.52 installed...



Downloading JSON-XS-1.5.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080115/temp/sc_compile
Something looks wrong - I couldn't read /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080115/temp/sc_compile/JSON-XS-1.5.tar.gz, which I just downloaded.
Uncompressing..
sh: JSON-XS-1.5.tar.gz: No such file or directory
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors
Couldn't change to JSON-XS-1.5 : No such file or directory at Bin/build-perl-modules.pl line 224, <STDIN> line 3.
*
* ERROR: media-sound/squeezecenter-7.0_beta20080115 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* squeezecenter-7.0_beta20080115.ebuild, line 90: Called die
* The specific snippet of code:
* echo -e "
${S}
${T}/sc_compile" | Bin/build-perl-modules.pl || die "Unable to build Perl modules"
* The die message:
* Unable to build Perl modules
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-sound/squeezecenter-7.0_beta20080115/temp/build.log'.
*

* Messages for package media-sound/squeezecenter-7.0_beta20080115:

*
* ERROR: media-sound/squeezecenter-7.0_beta20080115 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* squeezecenter-7.0_beta20080115.ebuild, line 90: Called die
* The specific snippet of code:
* echo -e "
* ${S}
* ${T}/sc_compile" | Bin/build-perl-modules.pl || die "Unable to build Perl modules"
* The die message:
* Unable to build Perl modules
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-sound/squeezecenter-7.0_beta20080115/temp/build.log'.
*
ant anvi #

hickinbottoms
2008-01-20, 12:10
Yes, you're right.

Slim Devices moved the location of the perl modules they make available
over the last couple of days, which means they now aren't found by the
ebuild. I'd have preferred that they'd also been left in the old
location for a short while rather than instantly moving them, but can't
complain too much as it's a beta.

I've already submitted an updated ebuild that works (it's the 19/01
version), so hopefully that'll show up in Portage soon. If you're
desperate I could talk you through installing a fixed build manually (PM
me if you're interested).

Stuart

ninjabase wrote:
> hmm latest beta - 20080115 - gives errors when installing.
> It seems as if Squeezecenter is trying to download and install JSON-XS
> 1.5 which is not available.
>
> I already have JSON-XS 1.52 installed...
>
>
>> Downloading JSON-XS-1.5.tar.gz to:
>> /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080115/temp/sc_compile
>> Something looks wrong - I couldn't read
>> /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080115/temp/sc_compile/JSON-XS-1.5.tar.gz,
>> which I just downloaded.
>> Uncompressing..
>> sh: JSON-XS-1.5.tar.gz: No such file or directory
>> tar: This does not look like a tar archive
>> tar: Error exit delayed from previous errors
>> Couldn't change to JSON-XS-1.5 : No such file or directory at
>> Bin/build-perl-modules.pl line 224, <STDIN> line 3.
>> *
>> * ERROR: media-sound/squeezecenter-7.0_beta20080115 failed.
>> * Call stack:
>> * ebuild.sh, line 1701: Called
>> dyn_compile
>> * ebuild.sh, line 1039: Called qa_call
>> 'src_compile'
>> * ebuild.sh, line 44: Called
>> src_compile
>> * squeezecenter-7.0_beta20080115.ebuild, line 90: Called die
>> * The specific snippet of code:
>> * echo -e "
>> ${S}
>> ${T}/sc_compile" | Bin/build-perl-modules.pl || die "Unable to build
>> Perl modules"
>> * The die message:
>> * Unable to build Perl modules
>> *
>> * If you need support, post the topmost build error, and the call
>> stack if relevant.
>> * A complete build log is located at
>> '/var/tmp/portage/media-sound/squeezecenter-7.0_beta20080115/temp/build.log'.
>> *
>>
>> * Messages for package media-sound/squeezecenter-7.0_beta20080115:
>>
>> *
>> * ERROR: media-sound/squeezecenter-7.0_beta20080115 failed.
>> * Call stack:
>> * ebuild.sh, line 1701: Called
>> dyn_compile
>> * ebuild.sh, line 1039: Called qa_call
>> 'src_compile'
>> * ebuild.sh, line 44: Called
>> src_compile
>> * squeezecenter-7.0_beta20080115.ebuild, line 90: Called die
>> * The specific snippet of code:
>> * echo -e "
>> * ${S}
>> * ${T}/sc_compile" | Bin/build-perl-modules.pl || die "Unable to build
>> Perl modules"
>> * The die message:
>> * Unable to build Perl modules
>> *
>> * If you need support, post the topmost build error, and the call
>> stack if relevant.
>> * A complete build log is located at
>> '/var/tmp/portage/media-sound/squeezecenter-7.0_beta20080115/temp/build.log'.
>> *
>> ant anvi #
>>
>>
>
>
>

ninjabase
2008-01-20, 12:21
Yes, you're right.

Slim Devices moved the location of the perl modules
....
I've already submitted an updated ebuild that works (it's the 19/01
version),
....

If you're desperate I could talk you through installing a fixed build manually (PM me if you're interested).



Thanks for the info :)
Nah, I'm not that desperate, i can wait. I've still got slimserver installed and running. :)




ninjabase wrote:[color=blue]
> hmm latest beta - 20080115 - gives errors when installing.
> It seems as if Squeezecenter is trying to download and install JSON-XS
> 1.5 which is not available.
>
> I already have JSON-XS 1.52 installed...
>

ninjabase
2008-01-28, 05:33
hmm latest beta gives error when running



emerge --config =media-sound/squeezecenter-7.0_beta20080126

when it asks for the mysql root password, I enter the password but then get this error:



MySQL root password:
/var/db/pkg/media-sound/squeezecenter-7.0_beta20080126/squeezecenter-7.0_beta20080126.ebuild: line 235: 9658 Segmentation fault mysql --user=root --password="${ROOT_PASSWD}" < /dev/null > /dev/null 2>&1
* Incorrect MySQL root password, or MySQL is not running


..and yes the mysql root password is correct and yes mysql is running...

hickinbottoms
2008-01-28, 06:58
There haven't been any changes relating to the use of MySQL in any of
the SC7 betas since the first one came out, so I wouldn't expect this
failure to creep in, and because the MySQL that's being used is the main
installation and not the one embedded with SC7 any problem you're seeing
sounds like it's not anything to do with the SC7 installation.

Do you use MySQL for anything else on that machine?

All that line of the build does is to try connecting to MySQL to
validate the password you're putting in - it doesn't actually do any
database manipulation. Could you try the following whilst logged on as
root on that machine:

mysql --user=root --password=XXX
(where XXX is the password for the *MySQL* root user on that machine)

I would expect that to fail as well, in which case it's not anything
specific to the ebuild. If it works then you would see a MySQL prompt.

If it is failing it would be worth checking system logs to see if
there's any reason for that (check for any full filesystems as well).

Let us know how you get on.

Stuart


ninjabase wrote:
> hmm latest beta gives error when running
>
>
> Code:
> --------------------
>
> emerge --config =media-sound/squeezecenter-7.0_beta20080126
> --------------------
>
>
> when it asks for the mysql root password, I enter the password but then
> get this error:
>
>
> Code:
> --------------------
>
> MySQL root password:
> /var/db/pkg/media-sound/squeezecenter-7.0_beta20080126/squeezecenter-7.0_beta20080126.ebuild: line 235: 9658 Segmentation fault mysql --user=root --password="${ROOT_PASSWD}" < /dev/null > /dev/null 2>&1
> * Incorrect MySQL root password, or MySQL is not running
>
> --------------------
>
>
> ..and yes the mysql root password is correct and yes mysql is
> running...
>
>
>

ninjabase
2008-01-28, 08:05
There haven't been any changes relating to the use of MySQL in any of the SC7 betas since the first one came out, so I wouldn't expect this failure to creep in, and because the MySQL that's being used is the main installation and not the one embedded with SC7 any problem you're seeing sounds like it's not anything to do with the SC7 installation.


Yes I was very surprised as well..



Do you use MySQL for anything else on that machine?


Nope :S



All that line of the build does is to try connecting to MySQL to
validate the password you're putting in - it doesn't actually do any database manipulation. Could you try the following whilst logged on as root on that machine:

mysql --user=root --password=XXX
(where XXX is the password for the *MySQL* root user on that machine)

I would expect that to fail as well, in which case it's not anything specific to the ebuild. If it works then you would see a MySQL prompt.


yes i looked in the ebuild and saw that it's just verifying the password and that the code is exactly the same as in the previous ebuild. I couldn't figure out why it failed either.

Mysql works fine when invoked from command prompt:


anvi@ant ~ $ mysql --user=root --password=password
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.54-log Gentoo Linux mysql-5.0.54

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> Aborted


And the filesystem looks ok, it's definitely not full...



anvi@ant ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 55G 16G 36G 31% /
udev 10M 168K 9.9M 2% /dev
/dev/hda1 99M 9.3M 85M 10% /boot
none 93M 0 93M 0% /dev/shm



Hmm. This is strange. I re-emerged mysql. I reset the mysql root password. Tried emergeing the previous version of the squeezecenter beta. Same error. Looks like it's something in my system...

ninjabase
2008-01-28, 08:09
hmm... mysql segfaults when given this command:

mysql --user=root --password=password < /dev/null > /dev/null 2>&1

but mysql --user=root --password=password

works fine. Straaaange..

hickinbottoms
2008-01-28, 08:40
Interesting. What do the following ones do:

echo quit | mysql --user=root --password=XXX >/dev/null 2>&1

echo quit | mysql --user=root --password=XXX >/dev/null

echo quit | mysql --user=root --password=XXX

Hopefully the first or the second ones will work, in which case I can
get that modified in the next ebuild (although it really should work as-is).

Stuart


ninjabase wrote:
> hmm... mysql segfaults when given this command:
>
> mysql --user=root --password=password < /dev/null > /dev/null 2>&1
>
>
>

ninjabase
2008-01-28, 08:55
hmm... those give no output whatsoever.

hickinbottoms
2008-01-28, 09:12
OK - could you PM me an email address and I'll email a test ebuild with
a couple of instructions for you to try it.

Stuart

ninjabase wrote:
> hmm... those give no output whatsoever.
>
>
>

ninjabase
2008-01-28, 10:23
Thanks! But I'll try it on another computer (fresh gentoo install) first to see if I can reproduce the error.

ninjabase
2008-01-28, 10:51
hmm actually I got the same error on another computer. When I type the correct mysql password, I get the long error message including the error about the MySQL root password, but when I type an incorrect MySQL root password, I only get an error message saying "Incorrect MySQL root password, or MySQL is not running"

So this error message only comes up when the correct password is typed...

ninjabase
2008-01-28, 14:03
Thanks to Stuart's new ebuild the config goes through without problems now. :)

hickinbottoms
2008-01-28, 14:19
Yep - I'll get the updated one in Portage for early next week, but if
anyone else gets this problem in the meantime then just let me know.

Thanks for the help tracking it down (although I still don't know why it
fails like that as other people are using it OK!)

Stuart


ninjabase wrote:
> Thanks to Stuart's new ebuild the config goes through without problems
> now. :)
>
>
>

vakuumbarn
2008-02-02, 08:38
I get the same error on Gentoo Amd64. Looking forward to the update :)

hickinbottoms
2008-02-03, 03:17
I get the same error on Gentoo Amd64. Looking forward to the update :)

Yes, I'll get an updated version out to the maintainer today and hopefully it'll be in portage within the next day or so.

Stuart

CavesOfTQLT
2008-02-06, 08:13
Okay, just followed the above instructions to emerge squeezecenter onto my Gentoo'd ppc Kurobox HG... and, after a few issues, it eventually appears to have worked.

So here's a brief transcript of what happened during the install...

First everything is up to date on the newly installed box which is running a 2.6.22 kernel.

I started by adding 'media-sound/squeezecenter ~x86' to package.keywords.

Then added 'alac flac' etc. to package.use.

Did the e-build mask for ppc.

I then did 'emerge -aDvt squeezecenter' and got back errors stating that alac, flac etc. were masked. Decided to delete the entries I'd added to package.use.

Tried again:-

kuroboxHG / # emerge -aDvt squeezecenter

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild N ] media-sound/squeezecenter-7.0_beta20080203 USE="-alac -avahi -bonjour -flac -lame -musepack -ogg -wavpack" 17,996 kB
[nomerge ] dev-perl/module-build-0.28.08 USE="-test"
[ebuild N ] dev-perl/extutils-parsexs-2.18 25 kB
[ebuild N ] dev-perl/ExtUtils-CBuilder-0.19 19 kB
[ebuild N ] dev-perl/module-build-0.28.08 USE="-test" 192 kB
[nomerge ] media-sound/squeezecenter-7.0_beta20080203 USE="-alac -avahi -bonjour -flac -lame -musepack -ogg -wavpack"
[nomerge ] virtual/mysql-5.0
[nomerge ] dev-db/mysql-5.0.54 USE="berkdb perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal (-selinux) -static"
[ebuild N ] dev-perl/DBD-mysql-4.00.5 120 kB
[ebuild N ] virtual/mysql-5.0 0 kB
[ebuild N ] dev-db/mysql-5.0.54 USE="berkdb perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal (-selinux) -static" 26,860 kB
[ebuild N ] dev-perl/GD-2.35-r1 USE="-animgif -gif -jpeg -png -truetype -xpm" 251 kB
[ebuild N ] media-libs/gd-2.0.35 USE="-fontconfig -jpeg -png -truetype -xpm" 1,185 kB
[nomerge ] dev-perl/extutils-parsexs-2.18
[nomerge ] dev-perl/module-build-0.28.08 USE="-test"
[ebuild N ] dev-perl/yaml-0.65 92 kB
[ebuild N ] dev-perl/Archive-Tar-1.32 39 kB
[ebuild N ] virtual/perl-Test-Harness-2.64 0 kB
[ebuild N ] dev-perl/IO-String-1.08 8 kB
[ebuild N ] dev-perl/IO-Zlib-1.07 10 kB
[ebuild N ] dev-perl/Compress-Zlib-2.005 62 kB
[ebuild N ] dev-perl/IO-Compress-Zlib-2.005 132 kB
[nomerge ] media-sound/squeezecenter-7.0_beta20080203 USE="-alac -avahi -bonjour -flac -lame -musepack -ogg -wavpack"
[ebuild N ] dev-perl/File-Which-0.05 8 kB
[nomerge ] dev-perl/DBD-mysql-4.00.5
[ebuild N ] dev-perl/DBI-1.54 450 kB
[ebuild N ] virtual/perl-Sys-Syslog-0.18 0 kB
[ebuild N ] dev-perl/PlRPC-0.2020-r1 18 kB
[ebuild N ] dev-perl/Net-Daemon-0.43 28 kB
[ebuild N ] virtual/perl-Storable-2.16 0 kB
[nomerge ] dev-perl/Compress-Zlib-2.005
[ebuild N ] dev-perl/IO-Compress-Base-2.005 89 kB
[ebuild N ] virtual/perl-Scalar-List-Utils-1.19 0 kB
[ebuild N ] dev-perl/Compress-Raw-Zlib-2.005 203 kB
[nomerge ] dev-perl/DBI-1.54
[ebuild N ] perl-core/Sys-Syslog-0.18 51 kB
[nomerge ] dev-perl/PlRPC-0.2020-r1
[ebuild N ] perl-core/Storable-2.16 170 kB
[nomerge ] dev-perl/Compress-Zlib-2.005
[nomerge ] virtual/perl-Scalar-List-Utils-1.19
[ebuild N ] perl-core/Scalar-List-Utils-1.19 43 kB
[nomerge ] media-sound/squeezecenter-7.0_beta20080203 USE="-alac -avahi -bonjour -flac -lame -musepack -ogg -wavpack"
[nomerge ] dev-db/mysql-5.0.54 USE="berkdb perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal (-selinux) -static"
[ebuild N ] dev-db/mysql-init-scripts-1.2 0 kB
[ebuild N ] sys-apps/ed-0.8 67 kB

Total: 30 packages (30 new), Size of downloads: 48,109 kB

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild Manifests...
Everything went smoothly i.e. no errors reported by any of the emerges, with the exception of the actual squeezecenter install. This threw up quite a lot of errors during the building of the Perl modules (way more than I can remember when doing it manually), and I've decided to show the log in all its entirety (it will take a post or two..) in the hope that it may be of help in getting them corrected:

>>> Emerging (30 of 30) media-sound/squeezecenter-7.0_beta20080203 to /
>>> Downloading 'http://distfiles.gentoo.org/distfiles/squeezecenter-7.0-17126-noCPAN.tgz'
--13:47:10-- http://distfiles.gentoo.org/distfiles/squeezecenter-7.0-17126-noCPAN.tgz
=> `/usr/portage/distfiles/squeezecenter-7.0-17126-noCPAN.tgz'
Resolving distfiles.gentoo.org... 140.211.166.134, 64.50.238.52, 216.165.129.135, ...
Connecting to distfiles.gentoo.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18,427,888 (18M) [application/x-gzip]

100%[================================================== ======>] 18,427,888 250.84K/s ETA 00:00

13:48:24 (246.64 KB/s) - `/usr/portage/distfiles/squeezecenter-7.0-17126-noCPAN.tgz' saved [18427888/18427888]

* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking squeezecenter-7.0-17126-noCPAN.tgz ;-) ... [ ok ]
* Adding group 'squeezecenter' to your system ...
* - Groupid: next available
* Adding user 'squeezecenter' to your system ...
* - Userid: 101
* - Shell: /sbin/nologin
* - Home: /opt/squeezecenter
* - Groups: squeezecenter
* - Creating /opt/squeezecenter in /
>>> Unpacking source...
>>> Unpacking squeezecenter-7.0-17126-noCPAN.tgz to /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/work
* Applying mDNSResponder-7.0-gentoo.patch ... [ ok ]
* Removing binaries provided by other ebuilds ...
* Removing bundled MySQL ...
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/work/squeezecenter-7.0-17126-noCPAN ...
* Building required Perl modules (some warnings are normal here) ...
Welcome to the Slim Devices perl module installer.

These packages are needed for SqueezeCenter to function.
You will need a C compiler (gcc), make, and perl installed.

You will need development libraries for MySQL. eg: libmysqlclient

You will need development libraries for expat. eg: libexpat1-dev

*** Ignore any warnings about AppConfig. ***

Please enter a perl binary to use (defaults to /usr/bin/perl)
This must be the same perl binary that you ran this program with --> Please enter the path to your SqueezeCenter directory (ex: /usr/local/slimserver) --> Please enter a directory to download files to --> Downloads will use /usr/bin/wget to fetch tarballs.

Downloading Compress-Zlib-1.41.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Up/Downgrade complete.
Building..
Library for Compress-Zlib-1.41.tar.gz is OK!

Downloading DBI-1.50.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL

I see you're using perl 5.008008 on powerpc-linux, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.

Building..
In file included from DBIXS.h:31,
from Perl.xs:5:
dbipport.h:227:1: warning: "PERL_UNUSED_DECL" redefined
In file included from DBIXS.h:19,
from Perl.xs:5:
/usr/lib/perl5/5.8.8/powerpc-linux/CORE/perl.h:163:1: warning: this is the location of the previous definition
In file included from DBIXS.h:31,
from DBI.xs:12:
dbipport.h:227:1: warning: "PERL_UNUSED_DECL" redefined
In file included from DBIXS.h:19,
from DBI.xs:12:
/usr/lib/perl5/5.8.8/powerpc-linux/CORE/perl.h:163:1: warning: this is the location of the previous definition
DBI.xs: In function 'dbih_clearcom':
DBI.xs:1183: warning: unused variable 'Perl___notused'
DBI.xs: In function 'dbih_get_fbav':
DBI.xs:1332: warning: unused variable 'Perl___notused'
DBI.xs: In function 'dbih_set_attr_k':
DBI.xs:1514: warning: unused variable 'Perl___notused'
DBI.xs:1514: warning: unused variable 'Perl___notused'
DBI.xs: In function 'dbih_get_attr_k':
DBI.xs:1654: warning: unused variable 'Perl___notused'
DBI.xs: In function 'log_where':
DBI.xs:2081: warning: unused variable 'Perl___notused'
DBI.xs: In function 'XS_DBI_dispatch':
DBI.xs:2971: warning: unused variable 'Perl___notused'
Library for DBI-1.50.tar.gz is OK!
Cont'd...

CavesOfTQLT
2008-02-06, 08:15
Downloading DBD-mysql-3.0002.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
PERL5LIB=/var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile/DBI-1.50/blib/lib:/var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile/DBI-1.50/blib/arch /usr/bin/perl Makefile.PL
Unrecognized argument in LIBS ignored: '-rdynamic'
Multiple copies of Driver.xst found in: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile/DBI-1.50/blib/arch/auto/DBI/ /usr/lib/perl5/vendor_perl/5.8.8/powerpc-linux/auto/DBI/ at Makefile.PL line 727
Building..
In file included from /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile/DBI-1.50/blib/arch/auto/DBI/DBIXS.h:31,
from dbdimp.h:20,
from dbdimp.c:20:
/var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile/DBI-1.50/blib/arch/auto/DBI/dbipport.h:227:1: warning: "PERL_UNUSED_DECL" redefined
In file included from /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile/DBI-1.50/blib/arch/auto/DBI/DBIXS.h:19,
from dbdimp.h:20,
from dbdimp.c:20:
/usr/lib/perl5/5.8.8/powerpc-linux/CORE/perl.h:163:1: warning: this is the location of the previous definition
Warning: duplicate function definition 'do' detected in mysql.xs, line 224
Warning: duplicate function definition 'rows' detected in mysql.xs, line 559
In file included from /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile/DBI-1.50/blib/arch/auto/DBI/DBIXS.h:31,
from dbdimp.h:20,
from mysql.xs:14:
/var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile/DBI-1.50/blib/arch/auto/DBI/dbipport.h:227:1: warning: "PERL_UNUSED_DECL" redefined
In file included from /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile/DBI-1.50/blib/arch/auto/DBI/DBIXS.h:19,
from dbdimp.h:20,
from mysql.xs:14:
/usr/lib/perl5/5.8.8/powerpc-linux/CORE/perl.h:163:1: warning: this is the location of the previous definition
mysql.c: In function 'XS_DBD__mysql__GetInfo_dbd_mysql_get_info':
mysql.xs:639: warning: ignoring return value of 'Perl_newSViv', declared with attribute warn_unused_result
mysql.xs:642: warning: ignoring return value of 'Perl_newSViv', declared with attribute warn_unused_result
mysql.xs:645: warning: ignoring return value of 'Perl_newSVpv', declared with attribute warn_unused_result
Library for DBD-mysql-3.0002.tar.gz is OK!

Downloading Digest-SHA1-2.11.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
Library for Digest-SHA1-2.11.tar.gz is OK!

Downloading Encode-Detect-1.00.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.8.8/ExtUtils/ParseXS.pm line 508, <GEN36> line 65.
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
Library for Encode-Detect-1.00.tar.gz is OK!


Cont'd...

CavesOfTQLT
2008-02-06, 08:24
Downloading HTML-Parser-3.48.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Warning: prerequisite HTML::Tagset 3 not found.
Building..
Library for HTML-Parser-3.48.tar.gz is OK!

Downloading JSON-XS-1.5.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
XS.xs: In function 'decode_hv':
XS.xs:1128: warning: comparison is always false due to limited range of data type
Library for JSON-XS-1.5.tar.gz is OK!

Downloading Template-Toolkit-2.15.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL TT_DOCS=n TT_SPLASH=n TT_THEME=n TT_EXAMPLES=n TT_EXAMPLES=n TT_EXTRAS=n TT_QUIET=y TT_ACCEPT=y TT_DBI=n TT_LATEX=n

The Template Toolkit requires that the AppConfig module (version 1.56
or later) first be installed. This is used by
the 'ttree' program for reading command line options and configuration
files. It is available from CPAN:

http://www.cpan.org/authors/Andy_Wardley/

Warning: prerequisite AppConfig 1.56 not found.
Building..
In file included from Stash.xs:41:
ppport.h:356:1: warning: "PERL_UNUSED_DECL" redefined
In file included from Stash.xs:40:
/usr/lib/perl5/5.8.8/powerpc-linux/CORE/perl.h:163:1: warning: this is the location of the previous definition
Library for Template-Toolkit-2.15.tar.gz is OK!

Downloading Time-HiRes-1.86.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
In file included from HiRes.xs:18:
ppport.h:2979:1: warning: "PERL_UNUSED_DECL" redefined
In file included from HiRes.xs:16:
/usr/lib/perl5/5.8.8/powerpc-linux/CORE/perl.h:163:1: warning: this is the location of the previous definition
Library for Time-HiRes-1.86.tar.gz is OK!

Downloading XML-Parser-2.34.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
Library for XML-Parser-2.34.tar.gz is OK!

Downloading YAML-Syck-0.64.tar.gz to: /var/tmp/portage/media-sound/squeezecenter-7.0_beta20080203/temp/sc_compile
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
Library for YAML-Syck-0.64.tar.gz is OK!
All done!

I then followed the instructions to configure mysql as it is a new installation:

kuroboxHG / # emerge --config =media-sound/squeezecenter-7.0_beta20080203


Configuring pkg...

* Press ENTER to create the SqueezeCenter database and set proper
* permissions on it. You will be prompted for the MySQL 'root' user's
* password during this process (note that the MySQL 'root' user is
* independent of the Linux 'root' user and so may have a different
* password).
*
* If you already have a SqueezeCenter database set up then this
* process will clear the existing database (your music files will not,
* however, be affected).
*
* Alternatively, press Control-C to abort now...

* The MySQL 'root' user password is required to create the
* SqueezeCenter user and database.
MySQL root password:
* Incorrect MySQL root password, or MySQL is not running
MySQL root password:
* Incorrect MySQL root password, or MySQL is not running
MySQL root password:
* Incorrect MySQL root password, or MySQL is not running
MySQL root password:
* Incorrect MySQL root password, or MySQL is not running
MySQL root password:

Exiting on signal 2
This appears to be the same error as ninjabase was getting. I then thought maybe mysql wasn't running:
kuroboxHG # /etc/init.d/mysql start
* Caching service dependencies ... [ ok ]
* Starting mysql ...
* You don't appear to have the mysql database installed yet.
* Please run /usr/bin/mysql_install_db to have this done... [ !! ]
Mmm, okay let's do the database...

Cont'd...

CavesOfTQLT
2008-02-06, 08:41
kuroboxHG # /usr/bin/mysql_install_db
WARNING: The host 'kuroboxHG' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
080206 14:06:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
080206 14:06:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK
Filling help tables...
080206 14:06:25 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
080206 14:06:25 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h kuroboxHG password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
I then did...
kuroboxHG # /usr/bin/mysql_secure_installation




NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Enter current password for root (enter for none):
Aborting!

Cleaning up...
Mmm, same as before, won't accept a password. Out of curiosity I tried to restart mysql:

kuroboxHG # /etc/init.d/mysql start
* Starting mysql ...
* Starting mysql (/etc/mysql/my.cnf) [ ok ]
So success here, let's try that config on squeezecenter again:

kuroboxHG # emerge --config =media-sound/squeezecenter-7.0_beta20080203


Configuring pkg...

* Press ENTER to create the SqueezeCenter database and set proper
* permissions on it. You will be prompted for the MySQL 'root' user's
* password during this process (note that the MySQL 'root' user is
* independent of the Linux 'root' user and so may have a different
* password).
*
* If you already have a SqueezeCenter database set up then this
* process will clear the existing database (your music files will not,
* however, be affected).
*
* Alternatively, press Control-C to abort now...

* The MySQL 'root' user password is required to create the
* SqueezeCenter user and database.
MySQL root password:
* A new MySQL user will be added to own the SqueezeCenter database.
* Please enter the password for this new user (squeezecenter).
MySQL squeezecenter password:
* Dropping old SqueezeCenter database and user ...
* Creating SqueezeCenter MySQL user and database (squeezecenter) ...
* Configuring SqueezeCenter database preferences (/etc/squeezecenter.prefs) ...
* Database configuration complete.
*
* SqueezeCenter can be started with the following command:
* /etc/init.d/squeezecenter start
*
* SqueezeCenter can be automatically started on each boot with the
* following command:
* rc-update add squeezecenter default
*
* You might want to examine and modify the following configuration
* file before starting SqueezeCenter:
* /etc/conf.d/squeezecenter
*
* You may access and configure SqueezeCenter by browsing to:
* http://localhost:9000/
This time around the password for mysql worked. I then added mysql and squeezecenter to the default runlevel.

Now let's see if squeezecenter fires up:

kuroboxHG # /etc/init.d/squeezecenter start
* Starting SqueezeCenter ...
Use of uninitialized value in join or string at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line [ ok ]
Well it worked but it threw up another error. However a check on localhost:9000 confirms squeezecenter is running (and has kept running during the writing of this).

Whether any of the above is a help, either to get things fixed, or even to help me if it's my box that's the cause of those issues, then something good will have come from this. Yes, I know it all seems to have worked out in the end but surely all those errors shouldn't be happening...

Finally, my heartfelt thanks to Stuart for getting this emerge into portage. Great stuff!

Rob.

hickinbottoms
2008-02-07, 13:57
Thanks for the report - I've just finished looking through it after a
couple of days.

I'm not sure about the MySQL issues you had as I've not played with that
architecture myself, but if you had any troubles there they'd be in the
realm of the mysql ebuild rather than the squeezecenter one. It seems to
have worked, though, given that it could initialise the SqueezeCenter
schema after you started it.

As for the Perl warnings - believe it or not but they look normal to me.
I get a similar level of warnings when building on my x86-based machine
so I don't think there's anything to worry about there. They all seem to
indicate they built correctly, despite the warnings.

So, although you get quite a lot of worrying output during the
installation, I think it does work OK (there's a tip-off that you're
going to see lots of warnings just before the Perl modules are built,
but I can appreciate it doesn't explain enough for you to know what's a
'normal' level).

Can you keep an eye on it and let us know if you have any trouble?
There'll periodically be new nightlies pushed out to Portage that you
can try upgrading to if you want. Those nightlies are currently about
one-a-week, but I'll probably slow that a lot once the official 7.0 is
released.

Thanks again for the report, I appreciate it.

Stuart

CavesOfTQLT wrote:
> Code:
> --------------------
> kuroboxHG # /usr/bin/mysql_install_db
> WARNING: The host 'kuroboxHG' could not be looked up with resolveip.
> This probably means that your libc libraries are not 100 % compatible
> with this binary MySQL version. The MySQL daemon, mysqld, should work
> normally with the exception that host name resolving will not work.
> This means that you should use IP addresses instead of hostnames
> when specifying MySQL privileges !
> Installing MySQL system tables...
> 080206 14:06:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
> 080206 14:06:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
> OK
> Filling help tables...
> 080206 14:06:25 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
> 080206 14:06:25 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
> OK
>
> To start mysqld at boot time you have to copy
> support-files/mysql.server to the right place for your system
>
> PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
> To do so, start the server, then issue the following commands:
> /usr/bin/mysqladmin -u root password 'new-password'
> /usr/bin/mysqladmin -u root -h kuroboxHG password 'new-password'
>
> Alternatively you can run:
> /usr/bin/mysql_secure_installation
>
> which will also give you the option of removing the test
> databases and anonymous user created by default. This is
> strongly recommended for production servers.
>
> See the manual for more instructions.
>
> You can start the MySQL daemon with:
> cd /usr ; /usr/bin/mysqld_safe &
>
> You can test the MySQL daemon with mysql-test-run.pl
> cd mysql-test ; perl mysql-test-run.pl
>
> Please report any problems with the /usr/bin/mysqlbug script!
>
> The latest information about MySQL is available on the web at
> http://www.mysql.com
> Support MySQL by buying support/licenses at http://shop.mysql.com
> --------------------
>
> I then did...
> Code:
> --------------------
> kuroboxHG # /usr/bin/mysql_secure_installation
>
>
>
>
> NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
> SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
>
>
> In order to log into MySQL to secure it, we'll need the current
> password for the root user. If you've just installed MySQL, and
> you haven't set the root password yet, the password will be blank,
> so you should just press enter here.
>
> Enter current password for root (enter for none):
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
> Enter current password for root (enter for none):
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
> Enter current password for root (enter for none):
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
> Enter current password for root (enter for none):
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
> Enter current password for root (enter for none):
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
> Enter current password for root (enter for none):
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
> Enter current password for root (enter for none):
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
> Enter current password for root (enter for none):
> Aborting!
>
> Cleaning up...
> --------------------
>
> Mmm, same as before, won't accept a password. Out of curiosity I tried
> to restart mysql:
>
> Code:
> --------------------
> kuroboxHG # /etc/init.d/mysql start
> * Starting mysql ...
> * Starting mysql (/etc/mysql/my.cnf) [ ok ]
> --------------------
>
> So success here, let's try that config on squeezecenter again:
>
> Code:
> --------------------
> kuroboxHG # emerge --config =media-sound/squeezecenter-7.0_beta20080203
>
>
> Configuring pkg...
>
> * Press ENTER to create the SqueezeCenter database and set proper
> * permissions on it. You will be prompted for the MySQL 'root' user's
> * password during this process (note that the MySQL 'root' user is
> * independent of the Linux 'root' user and so may have a different
> * password).
> *
> * If you already have a SqueezeCenter database set up then this
> * process will clear the existing database (your music files will not,
> * however, be affected).
> *
> * Alternatively, press Control-C to abort now...
>
> * The MySQL 'root' user password is required to create the
> * SqueezeCenter user and database.
> MySQL root password:
> * A new MySQL user will be added to own the SqueezeCenter database.
> * Please enter the password for this new user (squeezecenter).
> MySQL squeezecenter password:
> * Dropping old SqueezeCenter database and user ...
> * Creating SqueezeCenter MySQL user and database (squeezecenter) ...
> * Configuring SqueezeCenter database preferences (/etc/squeezecenter.prefs) ...
> * Database configuration complete.
> *
> * SqueezeCenter can be started with the following command:
> * /etc/init.d/squeezecenter start
> *
> * SqueezeCenter can be automatically started on each boot with the
> * following command:
> * rc-update add squeezecenter default
> *
> * You might want to examine and modify the following configuration
> * file before starting SqueezeCenter:
> * /etc/conf.d/squeezecenter
> *
> * You may access and configure SqueezeCenter by browsing to:
> * http://localhost:9000/
> --------------------
>
> This time around the password for mysql worked. I then added mysql and
> squeezecenter to the default runlevel.
>
> Now let's see if squeezecenter fires up:
>
> Code:
> --------------------
> kuroboxHG # /etc/init.d/squeezecenter start
> * Starting SqueezeCenter ...
> Use of uninitialized value in join or string at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line [ ok ]
> --------------------
>
> Well it worked but it threw up another error. However a check on
> localhost:9000 confirms squeezecenter is running (and has kept running
> during the writing of this).
>
> Whether any of the above is a help, either to get things fixed, or even
> to help me if it's my box that's the cause of those issues, then
> something good will have come from this. Yes, I know it all seems to
> have worked out in the end but surely all those errors shouldn't be
> happening...
>
> Finally, my heartfelt thanks to Stuart for getting this emerge into
> portage. Great stuff!
>
> Rob.
>
>
>