Skip to content

Instantly share code, notes, and snippets.

@jtmkrueger
Created May 6, 2010 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtmkrueger/392610 to your computer and use it in GitHub Desktop.
Save jtmkrueger/392610 to your computer and use it in GitHub Desktop.
$ gem uninstall mysql; gem install mysql
ERROR: While executing gem ... (Gem::InstallError)
cannot uninstall, check `gem list -d mysql`
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/Users/john_t_krueger/.rvm/rubies/ruby-1.8.6-p114/bin/ruby extconf.rb
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... yes
checking for mysql.h... yes
creating Makefile
make
gcc -I. -I. -I/Users/john_t_krueger/.rvm/rubies/ruby-1.8.6-p114/lib/ruby/1.8/i686-darwin10.3.0 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_RB_THREAD_START_TIMER -DHAVE_MYSQL_H -I/usr/local/mysql/include/mysql -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -fno-common -g -O2 -pipe -fno-common -c mysql.c
mysql.c: In function ‘time_inspect’:
mysql.c:1791: warning: format ‘%04d’ expects type ‘int’, but argument 5 has type ‘long int’
mysql.c:1791: warning: format ‘%02d’ expects type ‘int’, but argument 6 has type ‘long int’
mysql.c:1791: warning: format ‘%02d’ expects type ‘int’, but argument 7 has type ‘long int’
mysql.c:1791: warning: format ‘%02d’ expects type ‘int’, but argument 8 has type ‘long int’
mysql.c:1791: warning: format ‘%02d’ expects type ‘int’, but argument 9 has type ‘long int’
mysql.c:1791: warning: format ‘%02d’ expects type ‘int’, but argument 10 has type ‘long int’
mysql.c: In function ‘time_to_s’:
mysql.c:1804: warning: format ‘%04d’ expects type ‘int’, but argument 5 has type ‘long int’
mysql.c:1804: warning: format ‘%02d’ expects type ‘int’, but argument 6 has type ‘long int’
mysql.c:1804: warning: format ‘%02d’ expects type ‘int’, but argument 7 has type ‘long int’
mysql.c:1804: warning: format ‘%02d’ expects type ‘int’, but argument 8 has type ‘long int’
mysql.c:1804: warning: format ‘%02d’ expects type ‘int’, but argument 9 has type ‘long int’
mysql.c:1804: warning: format ‘%02d’ expects type ‘int’, but argument 10 has type ‘long int’
cc -dynamic -bundle -undefined suppress -flat_namespace -o mysql_api.bundle mysql.o -L"." -L"/Users/john_t_krueger/.rvm/rubies/ruby-1.8.6-p114/lib" -L. -L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -ldl -lobjc
make install
/opt/macports/bin/ginstall -c -m 0755 mysql_api.bundle /Users/john_t_krueger/.rvm/gems/ruby-1.8.6-p114/gems/mysql-2.8.1/lib
make: /opt/macports/bin/ginstall: No such file or directory
make: *** [/Users/john_t_krueger/.rvm/gems/ruby-1.8.6-p114/gems/mysql-2.8.1/lib/mysql_api.bundle] Error 1
Gem files will remain installed in /Users/john_t_krueger/.rvm/gems/ruby-1.8.6-p114/gems/mysql-2.8.1 for inspection.
Results logged to /Users/john_t_krueger/.rvm/gems/ruby-1.8.6-p114/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment