[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache, PHP and Mysql on NSLU2



On Fri, 2007-06-22 at 14:02 -0400, Aaron Klein wrote:
> I have lighttpd and php5 now working properly as I can see the phpinfo
> page I made but I have difficulty with mysql installing.  I have been
> trying and I am getting the same message I have been getting for a few
> days now.  I mess around till I finally get the apt-get process
> cleaned up but every time I go to do another install of mysql I get
> messags like this.
> 
> SLUG:/# apt-get install php5-mysql mysql-server
> Reading package lists... Done
> Building dependency tree... Done
> The following extra packages will be installed:
>   mysql-server-5.0
> Suggested packages:
>   tinyca
> The following NEW packages will be installed:
>   mysql-server mysql-server-5.0 php5-mysql
> 0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
> Need to get 25.4MB of archives.
> After unpacking 68.0MB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Get:1 http://ftp.egr.msu.edu etch/main mysql-server-5.0 5.0.32-7etch1 [25.3MB]
> Get:2 http://security.debian.org etch/updates/main php5-mysql
> 5.2.0-8+etch4 [63.9kB]
> Get:3 http://ftp.egr.msu.edu etch/main mysql-server 5.0.32-7etch1 [46.7kB]
> Fetched 25.4MB in 4m6s (103kB/s)
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 33, <> line 3.
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 48, <> line 3.
> Can't fork at /usr/sbin/dpkg-preconfigure line 67, <> line 3.
> Selecting previously deselected package mysql-server-5.0.
> (Reading database ... 18071 files and directories currently installed.)
> Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.0.32-7etch1_arm.deb) ...
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 33.
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 48.
> open2: fork failed: Cannot allocate memory at
> /usr/share/perl5/Debconf/ConfModule.pm line 58
> dpkg: error processing
> /var/cache/apt/archives/mysql-server-5.0_5.0.32-7etch1_arm.deb
> (--unpack):
>  subprocess pre-installation script returned error exit status 9
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 33.
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 48.
> open2: fork failed: Cannot allocate memory at
> /usr/share/perl5/Debconf/ConfModule.pm line 58
> dpkg: error while cleaning up:
>  subprocess post-removal script returned error exit status 9
> Selecting previously deselected package mysql-server.
> Unpacking mysql-server (from .../mysql-server_5.0.32-7etch1_all.deb) ...
> Selecting previously deselected package php5-mysql.
> Unpacking php5-mysql (from .../php5-mysql_5.2.0-8+etch4_arm.deb) ...
> Errors were encountered while processing:
>  /var/cache/apt/archives/mysql-server-5.0_5.0.32-7etch1_arm.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> SLUG:/#
> 

Ouch. I have never seen this. Those files mentioned are part of the
debconf package. Just a shot in the dark: are you logged in using a
nonstandard terminal size? What arm port are your running? The current
official one (oldabi) or the onofficial experimental eabi? If you see
things like this, I don't think they are related to mysql. What happens
if you install other packages?

Maybe your perl installation is corrupted??? You could try reinstalling
perl5? I don't get this (m//) pattern warning. My line 33 and 48 read:

                my ($rows)=`stty -a 2>/dev/null` =~ m/rows (\d+)/s;
                my ($cols)=`stty -a 2>/dev/null` =~ m/columns (\d+)/s;

or, (m/) patterns... I don't know if that's relevant...

Good luck,

David





Reply to: