You are not logged in.

Hurrican

Beginner

  • "Hurrican" started this thread

Posts: 17

Location: Hamburg

wcf.user.option.userOption53: Ja

  • Send private message

1

Monday, February 2nd 2015, 8:00pm

Can't locate DBI.pm in @INC

Hiho, wie man sieht versuche ich mich an HLStats..
Hab da ein Problem mit Perl:

Source code

1
2
Can't locate DBI.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./hlstats.pl line 66.
BEGIN failed--compilation aborted at ./hlstats.pl line 66.

Perl ist installiert. Leider fehlt DBI.pm und Dr. Google spuckt keinen erfolgreichen Lösungsvorschlag raus...
Betriebssystem ist debian-7.0-x86

Liebe Grüße
Gaming since 1.6

MadMakz

Super Moderator

Posts: 1,878

Location: ~#

wcf.user.option.userOption53: Ja

  • Send private message

Hurrican

Beginner

  • "Hurrican" started this thread

Posts: 17

Location: Hamburg

wcf.user.option.userOption53: Ja

  • Send private message

3

Monday, February 2nd 2015, 9:36pm

Quoted

/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.633\" -DXS_VERSION=\"1.633\" -fPIC "-I/usr/lib/perl/5.14/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter Perl.c
/bin/sh: 1: cc: not found
make: *** [Perl.o] Error 127
TIMB/DBI-1.633.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
TIMB/DBI-1.633.tar.gz : make NO
Gaming since 1.6

Impact

Super Moderator

Posts: 1,276

wcf.user.option.userOption53: Nein

  • Send private message

4

Monday, February 2nd 2015, 10:12pm

Ich kenne mich mit Perl jetzt nicht wirklich aus, eines der Fehler scheint aber eine Fehlende Compiler-Toolchain zu sein.
Installiere das Meta-Paket

Source code

1
build-essential

und probiere es dann nochmal.

hEiNz

Professional

Posts: 705

Location: Deutschland

Occupation: Freischaffender Künstler

wcf.user.option.userOption53: Nein

  • Send private message

5

Monday, February 2nd 2015, 10:19pm

hmm

hab zwar gerade auch hlstatsxce installet alles was dazu gehört debian 8

aber den fehler kenn ich auch nicht

denke das da mit dem perl irgenetwas nicht stimmt

nach welcher anleitung bist du vorgegangen ich hab die hier genommen

https://bitbucket.org/Maverick_of_UC/hls…on/wiki/Install

oder die hier

http://sourceserver.info/wiki/statistiken/hlxce/install

hmm vlt noch


Source code

1
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl 

Hurrican

Beginner

  • "Hurrican" started this thread

Posts: 17

Location: Hamburg

wcf.user.option.userOption53: Ja

  • Send private message

6

Monday, February 2nd 2015, 10:57pm

Inzwischen hab ichs geschafft DBI zu installieren, leider fehlt DBD:mysql, da gibts wiederum das hier:

Quoted

cpan[2]> install DBD:mysql
Running install for module 'DBD::mysql'
Running make for C/CA/CAPTTOFU/DBD-mysql-4.029.tar.gz
Checksum for /root/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.029.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE

CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.029.tar.gz

Can't exec "mysql_config": No such file or directory at Makefile.PL line 70.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located


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

Can't exec "mysql_config": No such file or directory at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Failed to determine directory of mysql.h. Use

perl Makefile.PL --cflags=-I<dir>

to set this directory. For details see DBD::mysql::INSTALL,
section "C Compiler flags" or type

perl Makefile.PL --help
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
CAPTTOFU/DBD-mysql-4.029.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
CAPTTOFU/DBD-mysql-4.029.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512



Mysql hab ich hiermit installiert:

Quoted

sudo apt-get install mysql-server mysql-client php5-mysql


Edit: hlstatsx scheint bis jetzt zu funktionieren... obwohl DBD:mysql nicht installiert werden konnte..
Gaming since 1.6

This post has been edited 1 times, last edit by "Hurrican" (Feb 2nd 2015, 11:29pm)


MadMakz

Super Moderator

Posts: 1,878

Location: ~#

wcf.user.option.userOption53: Ja

  • Send private message

7

Monday, February 2nd 2015, 11:32pm

Source code

1
apt-get install libmysqlclient-dev

This post has been edited 1 times, last edit by "MadMakz" (Feb 2nd 2015, 11:43pm)


Similar threads