Perl - XAMPP - установка DBI / DBD не работает на моем MAC - PullRequest
0 голосов
/ 16 октября 2019

Я установил XAMPP, затем переустановил xcode через zipfile. И наконец установил модуль DBI через cpan. (открыть терминал. cpan. установить DBI)

Последнее, что я пытался "cpan", а затем "установить DBD :: mysql", но это ничего не помогло. Я получаю ошибку 500.

Я получаю это сообщение об ошибке 500, и это сводит меня с ума. Я потратил 8 дней на установку этого на мой Mac.

Что я делаю не так ?? : ((

На моем компьютере установка XAMPP занимает 5 минут, на Mac - просто кошмар. Любые идеи помогут.

Спасибо !!

Jacks-MacBook-Air-2:~ Eagle$ cpan DBD::mysql
Reading '/Users/Eagle/.cpan/Metadata'
  Database was generated on Wed, 16 Oct 2019 14:29:02 GMT
Fetching with LWP:
http://mirror.pregi.net/CPAN/authors/01mailrc.txt.gz
Reading '/Users/Eagle/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://mirror.pregi.net/CPAN/modules/02packages.details.txt.gz
Reading '/Users/Eagle/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Thu, 17 Oct 2019 13:41:02 GMT
.............
  New CPAN.pm version (v2.27) available.
  [Currently running version is v2.00]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


...............................................................DONE
Fetching with LWP:
http://mirror.pregi.net/CPAN/modules/03modlist.data.gz
Reading '/Users/Eagle/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /Users/Eagle/.cpan/Metadata
Running install for module 'DBD::mysql'
Running make for D/DV/DVEEDEN/DBD-mysql-4.050.tar.gz
Checksum for /Users/Eagle/.cpan/sources/authors/id/D/DV/DVEEDEN/DBD-mysql-4.050.tar.gz ok
---- Unsatisfied dependencies detected during ----
----      DVEEDEN/DBD-mysql-4.050.tar.gz      ----
    Devel::CheckLib [build_requires]
Running make test
  Make had some problems, won't test
  Delayed until after prerequisites
Running make install
  Make had some problems, won't install
  Delayed until after prerequisites
Running install for module 'Devel::CheckLib'
Running make for M/MA/MATTN/Devel-CheckLib-1.13.tar.gz
Checksum for /Users/Eagle/.cpan/sources/authors/id/M/MA/MATTN/Devel-CheckLib-1.13.tar.gz ok

  CPAN.pm: Building M/MA/MATTN/Devel-CheckLib-1.13.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Devel::CheckLib
Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
----     MATTN/Devel-CheckLib-1.13.tar.gz     ----
    Mock::Config [build_requires]
    IO::CaptureOutput [build_requires]
Running make test
  Delayed until after prerequisites
Running make install
  Delayed until after prerequisites
Running install for module 'Mock::Config'
Running make for R/RU/RURBAN/Mock-Config-0.03.tar.gz
Checksum for /Users/Eagle/.cpan/sources/authors/id/R/RU/RURBAN/Mock-Config-0.03.tar.gz ok

  CPAN.pm: Building R/RU/RURBAN/Mock-Config-0.03.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Mock::Config
Writing MYMETA.yml and MYMETA.json
cp lib/Mock/Config.pm blib/lib/Mock/Config.pm
Manifying blib/man3/Mock::Config.3pm
  RURBAN/Mock-Config-0.03.tar.gz
  /usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/0-basic.t ....... 1/3 # Testing Mock::Config, Perl 5.018004, Config 5.018004, /usr/bin/perl
t/0-basic.t ....... ok   
t/manifest.t ...... skipped: requires a git checkout and a unix for git and diff
t/pod-coverage.t .. skipped: Author tests not required for installation
t/pod.t ........... skipped: Author tests not required for installation
All tests successful.
Files=4, Tests=3,  0 wallclock secs ( 0.04 usr  0.02 sys +  0.08 cusr  0.03 csys =  0.17 CPU)
Result: PASS
  RURBAN/Mock-Config-0.03.tar.gz
  /usr/bin/make test -- OK
Running make install
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/Library/Perl/5.18/Mock'
mkdir /Library/Perl/5.18/Mock: Permission denied at /System/Library/Perl/5.18/ExtUtils/Install.pm line 469.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1.
make: *** [pure_site_install] Error 13
  RURBAN/Mock-Config-0.03.tar.gz
  /usr/bin/make install  -- NOT OK
Running install for module 'IO::CaptureOutput'
Running make for D/DA/DAGOLDEN/IO-CaptureOutput-1.1104.tar.gz
Checksum for /Users/Eagle/.cpan/sources/authors/id/D/DA/DAGOLDEN/IO-CaptureOutput-1.1104.tar.gz ok

  CPAN.pm: Building D/DA/DAGOLDEN/IO-CaptureOutput-1.1104.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for IO::CaptureOutput
Writing MYMETA.yml and MYMETA.json
cp lib/IO/CaptureOutput.pm blib/lib/IO/CaptureOutput.pm
Manifying blib/man3/IO::CaptureOutput.3pm
  DAGOLDEN/IO-CaptureOutput-1.1104.tar.gz
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-report-prereqs.t .. # 
# Versions for all modules listed in MYMETA.json (including optional ones):
# 
# === Configure Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker 6.17 6.66
# 
# === Build Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 6.66
# 
# === Test Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 6.66
#     File::Spec          3.27 3.40
#     IO::File             any 1.16
#     Test::More          0.62 0.98
# 
# === Test Recommends ===
# 
#     Module         Want     Have
#     ---------- -------- --------
#     CPAN::Meta 2.120900 2.133380
# 
# === Runtime Requires ===
# 
#     Module         Want Have
#     -------------- ---- ----
#     Carp            any 1.29
#     Exporter        any 5.68
#     File::Basename  any 2.84
#     File::Temp     0.16 0.23
#     Symbol          any 1.07
#     strict          any 1.07
#     vars            any 1.03
#     warnings        any 1.18
# 
t/00-report-prereqs.t .. ok   
t/capture.t ............ ok     
t/capture_exec.t ....... ok     
t/capture_file.t ....... ok     
t/errors.t ............. ok     
t/noconsole.t .......... ok   
t/wperl.t .............. skipped: not MSWin32
All tests successful.
Files=7, Tests=105,  5 wallclock secs ( 0.06 usr  0.02 sys +  1.55 cusr  1.42 csys =  3.05 CPU)
Result: PASS
  DAGOLDEN/IO-CaptureOutput-1.1104.tar.gz
  /usr/bin/make test -- OK
Running make install
Manifying blib/man3/IO::CaptureOutput.3pm
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/Library/Perl/5.18/IO'
mkdir /Library/Perl/5.18/IO: Permission denied at /System/Library/Perl/5.18/ExtUtils/Install.pm line 469.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1.
make: *** [pure_site_install] Error 13
  DAGOLDEN/IO-CaptureOutput-1.1104.tar.gz
  /usr/bin/make install  -- NOT OK
Running make for M/MA/MATTN/Devel-CheckLib-1.13.tar.gz
  Has already been unwrapped into directory /Users/Eagle/.cpan/build/Devel-CheckLib-1.13-2wstnX

  CPAN.pm: Building M/MA/MATTN/Devel-CheckLib-1.13.tar.gz

cp lib/Devel/CheckLib.pm blib/lib/Devel/CheckLib.pm
cp bin/use-devel-checklib blib/script/use-devel-checklib
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/use-devel-checklib
Manifying blib/man1/use-devel-checklib.1
Manifying blib/man3/Devel::CheckLib.3pm
  MATTN/Devel-CheckLib-1.13.tar.gz
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ................... ok   
t/analyze-binary.t ............ ok   
t/bad-single-word-compiler.t .. Name "Config::STORE" used only once: possible typo at t/bad-single-word-compiler.t line 18.
t/bad-single-word-compiler.t .. ok   
t/cmdline-LIBS-INC.t .......... ok   
t/custom-function.t ........... ok   
t/dash-l-libs.t ............... ok   
t/exit_with_message.t ......... ok   
t/flags.t ..................... ok   
t/found.t ..................... ok   
t/headers.t ................... ok   
t/multi-word-compiler.t ....... Name "Config::STORE" used only once: possible typo at t/multi-word-compiler.t line 18.
t/multi-word-compiler.t ....... ok   
t/not_found.t ................. ok     
All tests successful.
Files=12, Tests=42,  9 wallclock secs ( 0.07 usr  0.04 sys +  3.72 cusr  2.34 csys =  6.17 CPU)
Result: PASS
  MATTN/Devel-CheckLib-1.13.tar.gz
  /usr/bin/make test -- OK
Running make install
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/Library/Perl/5.18/Devel'
mkdir /Library/Perl/5.18/Devel: Permission denied at /System/Library/Perl/5.18/ExtUtils/Install.pm line 469.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1.
make: *** [pure_site_install] Error 13
  MATTN/Devel-CheckLib-1.13.tar.gz
  /usr/bin/make install  -- NOT OK
Running make for D/DV/DVEEDEN/DBD-mysql-4.050.tar.gz

  CPAN.pm: Building D/DV/DVEEDEN/DBD-mysql-4.050.tar.gz

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

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'Eagle' 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 'Eagle'@'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 603.
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]
  DVEEDEN/DBD-mysql-4.050.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Jacks-MacBook-Air-2:~ Eagle$ 
...