computistのプロフィール

@computist computist
ありがとう数0
質問数0
回答数1
ベストアンサー数
0
ベストアンサー率
0%
お礼率
0%

  • 登録日2010/03/08
  • DBDのインストールで以下のエラー

    OSはmacOS 10.6 Snow Leopardです。 【1】まずディレクトリを移動 $cd/Users/machidaakira/Desktop/installlog/MySQL/DBD-mysql-3.0008 【2】perl Makefile.plI の実行で以下のエラー DBD-mysql-3.0008$ perl Makefile.plI will use the following settings for compiling and testing: cflags (mysql_config) = -I/usr/include/mysql -fno-omit-frame-pointer -pipe embedded (mysql_config) = libs (mysql_config) = -pipe -L/usr/lib/mysql -lmysqlclient -lz -lm mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 ssl (guessed ) = 0 testdb (default ) = test testhost (default ) = testpassword (default ) = testsocket (default ) = testuser (default ) = To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'. Failed to create t/mysql.mtest: Permission denied at Makefile.pl line 188, <PIPE> line 103. 【3】さらにmakeの実行で以下のエラー akiram1979:DBD-mysql-3.0008 machidaakira$ makegcc-4.2 -c -I/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI -I/usr/local/mysql/include/mysql -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"3.0008\" -DXS_VERSION=\"3.0008\" "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE" dbdimp.c In file included from dbdimp.c:20: dbdimp.h:21:49: error: mysql.h: No such file or directory dbdimp.h:22:45: error: mysqld_error.h: No such file or directory dbdimp.h:23:49: error: errmsg.h: No such file or directory In file included from dbdimp.c:20: dbdimp.h:124: error: expected specifier-qualifier-list before ‘MYSQL’ dbdimp.h:214: error: expected specifier-qualifier-list before ‘MYSQL_RES’ In file included from dbdimp.c:20: dbdimp.h:268: error: expected ‘)’ before ‘*’ token dbdimp.h:271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_st_internal_execute’ dbdimp.h:292: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token dbdimp.c: In function ‘alloc_param’: dbdimp.c:112: warning: format not a string literal and no format arguments dbdimp.c: At top level: dbdimp.c:398: error: expected ‘)’ before ‘*’ token dbdimp.c:666: error: ‘FIELD_TYPE_VAR_STRING’ undeclared here (not in a function) dbdimp.c:673: error: ‘FIELD_TYPE_DECIMAL’ undeclared here (not in a function) dbdimp.c:680: error: ‘FIELD_TYPE_TINY’ undeclared here (not in a function) dbdimp.c:687: error: ‘FIELD_TYPE_SHORT’ undeclared here (not in a function) dbdimp.c:694: error: ‘FIELD_TYPE_LONG’ undeclared here (not in a function) dbdimp.c:701: error: ‘FIELD_TYPE_FLOAT’ undeclared here (not in a ~ dbdimp.c:3978: error: ‘imp_dbh_t’ has no member named ‘mysql’ dbdimp.c: In function ‘mysql_db_last_insert_id’: dbdimp.c:3993: error: ‘imp_dbh_t’ has no member named ‘mysql’ dbdimp.c:3993: warning: passing argument 2 of ‘Perl_sv_2mortal’ makes pointer from integer without a cast lipo: can't open input file: /var/folders/bi/biS-GmuWG80l7P98UBgt0k+++TI/-Tmp-//ccspyro0.out (No such file or directory) make: *** [dbdimp.o] Error 1