Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 19, 2014 9:33 am 
Offline
Newbie

Joined: Sat Apr 19, 2014 9:22 am
Posts: 4
I'm trying to get Longview configured on my node, which happens to be a Gentoo server, but I'm running into errors when it tries to install the MySQL dependencies. Judging by the log file, it's expecting a password-less local root user during the testing phase, which I don't have. I've tried setting up a .my.cnf file to provide a password for it, but it seems to ignore that. Here's the log file:

Code:
cpanm (App::cpanminus) 1.7001 on perl 5.016003 built for x86_64-linux
Work directory is /root/.cpanm/work/1397913610.16651
You have make /usr/bin/make
You have /usr/bin/wget
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.63_02)
Checking if you have ExtUtils::Install 1.46 ... Yes (1.58)
Searching DBD::mysql on cpanmetadb ...
--> Working on DBD::mysql
Fetching http://www.cpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.027.tar.gz
-> OK
Unpacking DBD-mysql-4.027.tar.gz
Entering DBD-mysql-4.027
Checking configure dependencies from META.json
Checking if you have DBI 1.08 ... Yes (1.631)
Configuring DBD-mysql-4.027
Running Makefile.PL


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'root' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'root'@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I/usr/include/mysql -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs -fno-strict-aliasing  -g -DNDEBUG
  embedded      (mysql_config) =
  ldflags       (mysql_config) =
  libs          (mysql_config) = -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl
  mysql_config  (guessed     ) = mysql_config
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 1
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (default     ) =
  testport      (default     ) =
  testsocket    (default     ) =
  testuser      (guessed     ) = root

To change these settings, see 'perl Makefile.PL --help' and
'perldoc DBD::mysql::INSTALL'.

Checking if your kit is complete...
Looks good
Multiple copies of Driver.xst found in: /opt/linode/longview/lib/perl5/x86_64-linux/auto/DBI/ /usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux/auto/DBI/ at Makefile.PL line 936.
Using DBI 1.631 (for perl 5.016003 on x86_64-linux) installed in /opt/linode/longview/lib/perl5/x86_64-linux/auto/DBI/
Writing Makefile for DBD::mysql
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (0.98)
Checking if you have Data::Dumper 0 ... Yes (2.135_06)
Checking if you have Test::Deep 0 ... Yes (0.112)
Checking if you have DBI 1.08 ... Yes (1.631)
Building and testing DBD-mysql-4.027
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp README.pod blib/lib/DBD/README.pod
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
x86_64-pc-linux-gnu-gcc -c  -I/opt/linode/longview/lib/perl5/x86_64-linux/auto/DBI -I/usr/include/mysql -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs -fno-strict-aliasing  -g -DNDEBUG -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=nocona -O2 -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs --param ggc-min-expand=32768 --param ggc-min-heapsize=65536   -DVERSION=\"4.027\" -DXS_VERSION=\"4.027\" -fPIC "-I/usr/lib64/perl5/5.16.3/x86_64-linux/CORE"   dbdimp.c
/usr/bin/perl5.16.3 -p -e "s/~DRIVER~/mysql/g" /opt/linode/longview/lib/perl5/x86_64-linux/auto/DBI/Driver.xst > mysql.xsi
/usr/bin/perl5.16.3 /usr/lib64/perl5/vendor_perl/5.16.3/ExtUtils/xsubpp  -typemap /usr/lib64/perl5/5.16.3/ExtUtils/typemap  mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 242
Warning: duplicate function definition 'rows' detected in mysql.xs, line 754
x86_64-pc-linux-gnu-gcc -c  -I/opt/linode/longview/lib/perl5/x86_64-linux/auto/DBI -I/usr/include/mysql -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs -fno-strict-aliasing  -g -DNDEBUG -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=nocona -O2 -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs --param ggc-min-expand=32768 --param ggc-min-heapsize=65536   -DVERSION=\"4.027\" -DXS_VERSION=\"4.027\" -fPIC "-I/usr/lib64/perl5/5.16.3/x86_64-linux/CORE"   mysql.c
mysql.xs: In function 'XS_DBD__mysql__GetInfo_dbd_mysql_get_info':
mysql.xs:933:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib64/mysql:/lib64:/usr/lib64" /usr/bin/perl5.16.3 myld x86_64-pc-linux-gnu-gcc  -shared -march=nocona -O2 -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs --param ggc-min-expand=32768 --param ggc-min-heapsize=65536 -Wl,-O1 -Wl,--as-needed dbdimp.o mysql.o  -o blib/arch/auto/DBD/mysql/mysql.so   \
   -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl          \

chmod 755 blib/arch/auto/DBD/mysql/mysql.so
cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
PERL_DL_NONLAZY=1 /usr/bin/perl5.16.3 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.t ........................... ok
Bailout called.  Further testing stopped:  ERROR: Access denied for user 'root'@'localhost' (using password: NO)
FAILED--Further testing stopped: ERROR: Access denied for user 'root'@'localhost' (using password: NO)
make: *** [test_dynamic] Error 255
-> FAIL Installing DBD::mysql failed. See /root/.cpanm/work/1397913610.16651/build.log for details. Retry with --force to force install it.


Top
   
PostPosted: Sat Apr 19, 2014 9:34 am 
Offline
Newbie

Joined: Sat Apr 19, 2014 9:22 am
Posts: 4
(If I was running this install myself, it wouldn't be a problem, but since it's scripted I don't know how to provide a username / password for it to use.)


Top
   
PostPosted: Sat Apr 19, 2014 9:43 am 
Offline
Newbie

Joined: Sat Apr 19, 2014 9:22 am
Posts: 4
(Also, if there's a place to provide a fixed init script for Gentoo, I have one.)

Code:
#!/sbin/runscript

command="/opt/linode/longview/Linode/Longview.pl"
pidfile="/var/run/longview.pid"

depend() {
        need net
        use logger mysql
}


Last edited by Utoxin on Sat Apr 19, 2014 9:50 am, edited 1 time in total.

Top
   
PostPosted: Sat Apr 19, 2014 9:47 am 
Offline
Newbie

Joined: Sat Apr 19, 2014 9:22 am
Posts: 4
Hmm. This just became lower priority. Apparently it's using the system-level DBD::mysql without any issue, even though the installer crashed out. Still, this should be fixed.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group