checkperlmodules notices -- not a serious problem

1a-Websolutions

Active Member
Aug 24, 2006
42
0
156
Hello,

after Update Cpanel to Current-Version C12289 today i recieve this Email-Message:

##############

This module is required by cPanel, and the system may not function correctly until it is installed, and functional. Below is the results of the auto-install attempt:

Test Run
==============
Can't locate Image/Magick.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/site_perl/5.8.8/Image/ButtonMaker/TextContainer.pm line 3.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Image/ButtonMaker/TextContainer.pm line 3.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Image/ButtonMaker/Button.pm line 7.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Image/ButtonMaker/Button.pm line 7.
Compilation failed in require at - line 1.
BEGIN failed--compilation aborted at - line 1.

####################

Perl are install on the Version 5.8.8

OS-System are CentOs 4.5 i686

WHM 11.1.0 cPanel 11.2.12-C12289

How cann I fix this issue?

############################

Into upcp I have this Error:

Reading repository metadata in from local files
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 97, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 470, in doCommands
return self.installPkgs()
File "/usr/share/yum-cli/cli.py", line 836, in installPkgs
self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup
self.doSackSetup(thisrepo=thisrepo)
File "__init__.py", line 260, in doSackSetup
File "repos.py", line 287, in populateSack
File "sqlitecache.py", line 96, in getPrimary
File "sqlitecache.py", line 89, in _getbase
File "sqlitecache.py", line 373, in updateSqliteCache
File "/var/tmp/python-sqlite-root//usr/lib/python2.3/site-packages/sqlite/main.py", line 244, in execute
_sqlite.DatabaseError: unable to open database file
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 97, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 477, in doCommands
return self.updatePkgs()
File "/usr/share/yum-cli/cli.py", line 955, in updatePkgs
self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup
self.doSackSetup(thisrepo=thisrepo)
File "__init__.py", line 260, in doSackSetup
File "repos.py", line 287, in populateSack
File "sqlitecache.py", line 96, in getPrimary
File "sqlitecache.py", line 89, in _getbase
File "sqlitecache.py", line 373, in updateSqliteCache
File "/var/tmp/python-sqlite-root//usr/lib/python2.3/site-packages/sqlite/main.py", line 244, in execute
_sqlite.DatabaseError: unable to open database file
Fetching http://cpan.cpanel.net/cPCPAN/modules.versions (0)[email protected]%......Done
Method: Perl Expect
Fetching CPAN timestamp...Done
Testing connection speed...(this could take a while)...Done
Ping:7.578 Testing connection speed to pandemonium.tiscali.de using pureperl...(105500.00 bytes/s)...Done
Ping:1.454 Testing connection speed to mirror.switch.ch using pureperl...(157450.00 bytes/s)...Done
Three usable mirrors located
Mirror Check passed for mirror.switch.ch (/index.html)
Unknown config variable 'less'
commit: wrote '/usr/lib/perl5/5.8.8/CPAN/Config.pm'
CPAN: File::HomeDir loaded ok (v0.65)
CPAN: Storable loaded ok (v2.16)
Going to read /home/.cpan/Metadata
Database was generated on Sat, 19 May 2007 09:54:13 GMT
CPAN: LWP::UserAgent loaded ok (v2.033)
CPAN: Time::HiRes loaded ok (v1.9707)
Fetching with LWP:
http://mirror.switch.ch/ftp/mirror/CPAN/authors/01mailrc.txt.gz
CPAN: YAML loaded ok (v0.62)
Going to read /home/.cpan/sources/authors/01mailrc.txt.gz
............................................................................DONE
Fetching with LWP:
http://mirror.switch.ch/ftp/mirror/CPAN/modules/02packages.details.txt.gz
Going to read /home/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Sun, 20 May 2007 15:55:19 GMT
............................................................................DONE
Fetching with LWP:
http://mirror.switch.ch/ftp/mirror/CPAN/modules/03modlist.data.gz
Going to read /home/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /home/.cpan/Metadata
Devel::PPPort is up to date (3.11).

############################################



Best Regards
 

[email protected]

Well-Known Member
Jul 9, 2005
78
0
156
Belgium
yup same here i'm on Redhat enterprise 4 ES after upcp has run *bingo* that module is indeed buggy guess we need to wait until the author fixes it
 

rikgarner

Well-Known Member
Mar 31, 2006
75
1
158
/dev/null
Centos 4.5 - exhibiting the same problem.

I have removed all RPM packages for imagemagick and imagemagick-devel (yum erase), and compiled the latest imagemagick (6.3.4) from source:

cd ~/
wget ftp://ftp.fu-berlin.de/unix/X11/graphics/ImageMagick/ImageMagick-6.3.4-1.tar.gz
tar -xzvf ImageMagick-6.3.4-1.tar.gz
cd ImageMagick-6.3.4
./configure --with-x=no (Wouldn't compile without this switch, LD complained about X libs)
make
make install

All seemed to install OK, and then:
cpan Image::ButtonMaker::Button

went OK too.

As always, this works for me, I give absolutely no guarantee that following this will not cause the server to delete all your domains and set fire to your rack ;)
 

Fernis

Well-Known Member
Oct 28, 2006
193
1
168
I got the same error on Redhat Ent 4. I am also running current.
 

viptexting

Well-Known Member
Sep 19, 2005
74
0
156
cPanel 11 - checkperlmodules errors on all servers!

Hi,

All my servers are sending me the following error:

[checkperlmodules] The perl module Image::ButtonMaker::Button could not be installed.

This module is required by cPanel, and the system may not function correctly until it is installed, and functional. Below is the results of the auto-install attempt:
An install log follows where 'CPAN.pm: Going to build P/PI/PICZ/Image-ButtonMaker-0.1.4.tar.gz' shows 100's of errors and fails.

How can I fix this?
 

Skie

Active Member
Mar 27, 2003
39
0
156
Centos 4.5 - exhibiting the same problem.

I have removed all RPM packages for imagemagick and imagemagick-devel (yum erase), and compiled the latest imagemagick (6.3.4) from source:

cd ~/
wget ftp://ftp.fu-berlin.de/unix/X11/graphics/ImageMagick/ImageMagick-6.3.4-1.tar.gz
tar -xzvf ImageMagick-6.3.4-1.tar.gz
cd ImageMagick-6.3.4
./configure --with-x=no (Wouldn't compile without this switch, LD complained about X libs)
make
make install

All seemed to install OK, and then:
cpan Image::ButtonMaker::Button

went OK too.

As always, this works for me, I give absolutely no guarantee that following this will not cause the server to delete all your domains and set fire to your rack ;)
This seems to have worked for me as well. I say "seems to" since compiling/installing ImageMagick from source threw dozens upon dozens of warnings. I saw no errors, but with that many warnings, it would be easy to miss any errors.
 

rikgarner

Well-Known Member
Mar 31, 2006
75
1
158
/dev/null
Yes, Maybe I should have said that the compile wasn't without its fair share of warnings, however due to the number of other libraries on which ImageMagick relies, I was not suprised to see warnings.

I may have another server to do this compile on at some point, and if I do, then I will pipe out the contents of the compile so that I can have a dig through afterwards to make sure that nothing fatal happens, however in my experience, Perl modules tend to be pretty good in checking to see if they are broken.
 

Skie

Active Member
Mar 27, 2003
39
0
156
The good thing is that installing ButtonMaker didn't complain after compiling/installing ImageMagick from source. I have a few more servers as well that I need to do this with.
 

viptexting

Well-Known Member
Sep 19, 2005
74
0
156
If cPanel tested their updates wouldn't even have to post in the first place. So I have to go on every server remove packages and recompile source packages... what a big waste of time THANKS CPANEL.... :mad:
 

Fernis

Well-Known Member
Oct 28, 2006
193
1
168
Is this something that can be fixed by cPanel in the next release or is it dependent on a 3rd party to correct this? I'm just wondering if I should wait for the next current release of cPanel or do the manual update that was posted above.
 

rikgarner

Well-Known Member
Mar 31, 2006
75
1
158
/dev/null
To the best of my knowledge, Cpanel relies upon the RPM's which are provided by the distro. AFAIK, the current RPM for Centos 4.5 (and then the RHEL equivalent) as per the base repo, is 6.0.7, which as we have seen, does not seem to install properly, however I do know that Centos 4.5 updated GCC to 3.4.6-8 from 3.4.6-3 - so it could be either a compiler issue or a library issue (perhaps one of the many libraries which ImageMagick relies upon was updated past that of the version which that paticular version of ImageMagick works with).

Before compiling up the latest sources myself, I tried to use the ELS script to install ImageMagick from source for me, and this tried installing 6.3.3, however failed with the same errors as the distro-provided 6.0.7, so something changed between 6.3.3 and 6.3.4 to enable it to work.

The only thing I can find between 6.3.3 and 6.3.4 in the changelog (http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=8620) is support for fontconfig versions 2.1.0 and above. Looking at the server I compiled on earlier, it has fontconfig 2.2.3-7 on it, and comparing Centos 4.4 to 4.5, both have the same RPM in the base tree, however I cannot see from the changelog what else could have changed to make 6.3.4 work and 6.3.3 not.
 
  • Like
Reactions: MaraBlue

jrehmer

Well-Known Member
Apr 10, 2003
287
0
166
Denver, CO
I get a whole lot of this when I try to install Image::Magick but I'm not sure how to resolve it:


....(uncompressing files)........
./PerlMagick-6.32/t/xfig/read.t
./PerlMagick-6.32/t/input.dib
./PerlMagick-6.32/t/subroutines.pl
CPAN: File::Temp loaded ok (v0.18)

CPAN.pm: Going to build J/JC/JCRISTY/PerlMagick-6.32.tar.gz

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -llcms
Note (probably harmless): No library found for -lgs
Note (probably harmless): No library found for -lXext
Note (probably harmless): No library found for -lXt
Note (probably harmless): No library found for -lSM
Note (probably harmless): No library found for -lICE
Note (probably harmless): No library found for -lX11
Note (probably harmless): No library found for -lrsvg-2
Note (probably harmless): No library found for -lgvc
Writing Makefile for Image::Magick
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
cc -c -I../ -I.. -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/graphviz -I/usr/include/freetype2 -I/usr/include/libxml2 -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g -O2 -Wall -W -pthread -O2 -DVERSION=\"6.3.2\" -DXS_VERSION=\"6.3.2\" -fpic "-I/usr/lib/perl5/5.8.8/i686-linux/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
Magick.xs:64:31: magick/MagickCore.h: No such file or directory
Magick.xs:154: error: syntax error before "MagickRealType"
Magick.xs:154: warning: no semicolon at end of struct or union
Magick.xs:161: error: syntax error before '*' token
Magick.xs:161: warning: type defaults to `int' in declaration of `image_reference'
Magick.xs:161: warning: data definition has no type or storage class
Magick.xs:171: error: syntax error before '}' token
Magick.xs:175: error: syntax error before "ImageInfo"
Magick.xs:175: warning: no semicolon at end of struct or union
Magick.xs:197: error: `MagickNoiseOptions' undeclared here (not in a function)
Magick.xs:197: error: initializer element is not constant
Magick.xs:197: error: (near initialization for `Methods[2].arguments[0].type')
Magick.xs:197: warning: missing initializer
Magick.xs:197: warning: (near initialization for `Methods[2].arguments[0].type')
Magick.xs:197: error: initializer element is not constant
Magick.xs:197: error: (near initialization for `Methods[2].arguments[0]')
Magick.xs:198: error: `MagickChannelOptions' undeclared here (not in a function)
Magick.xs:198: error: initializer element is not constant
Magick.xs:198: error: (near initialization for `Methods[2].arguments[1].type')
Magick.xs:198: warning: missing initializer
Magick.xs:198: warning: (near initialization for `Methods[2].arguments[1].type')
Magick.xs:198: error: initializer element is not constant
Magick.xs:198: error: (near initialization for `Methods[2].arguments[1]')
Magick.xs:198: error: initializer element is not constant
Magick.xs:198: error: (near initialization for `Methods[2].arguments')
Magick.xs:198: warning: missing initializer
Magick.xs:198: warning: (near initialization for `Methods[2].arguments')
Magick.xs:198: error: initializer element is not constant
Magick.xs:198: error: (near initialization for `Methods[2]')
Magick.xs:199: error: initializer element is not constant
Magick.xs:199: error: (near initialization for `Methods[3].arguments[0]')
Magick.xs:199: error: initializer element is not constant
Magick.xs:199: error: (near initialization for `Methods[3].arguments[1]')
Magick.xs:199: error: initializer element is not constant
Magick.xs:199: error: (near initialization for `Methods[3].arguments')
Magick.xs:199: warning: missing initializer
Magick.xs:199: warning: (near initialization for `Methods[3].arguments')
Magick.xs:199: error: initializer element is not constant
Magick.xs:199: error: (near initialization for `Methods[3]')
Magick.xs:200: error: initializer element is not constant
 
Mar 28, 2007
8
0
151
The perl module Image::ButtonMaker::Button could not be installed.

I wouldn't say compiling ImageMagick from source is a solution, more of a work-around. I'd still like to see an official cPanel response to this issue.

I agree that an official cPanel response is necessary.