gem install error

670 views
Skip to first unread message

Stuart Cracraft

unread,
Dec 16, 2013, 5:37:23 PM12/16/13
to puppet...@googlegroups.com
 
Anyone seen this?

[root@ca-sna-pm01 puppet-dashboard]# !gem

gem install mysql-2.9.1

ERROR:  While executing gem ... (Net::HTTPServerException)

    403 "Forbidden"

[root@ca-sna-pm01 puppet-dashboard]# gem install mysql

Building native extensions.  This could take a while...

ERROR:  Error installing mysql:

        ERROR: Failed to build gem native extension.

 

    /usr/bin/ruby extconf.rb

checking for mysql_ssl_set()... no

checking for rb_str_set_len()... no

checking for rb_thread_start_timer()... no

checking for mysql.h... no

checking for mysql/mysql.h... no

*** extconf.rb failed ***

Could not create Makefile due to some reason, probably lack of

necessary libraries and/or headers.  Check the mkmf.log file for more

details.  You may need configuration options.

 

Provided configuration options:

        --with-opt-dir

        --without-opt-dir

        --with-opt-include

        --without-opt-include=${opt-dir}/include

        --with-opt-lib

        --without-opt-lib=${opt-dir}/lib

        --with-make-prog

        --without-make-prog

        --srcdir=.

        --curdir

        --ruby=/usr/bin/ruby

        --with-mysql-config

        --without-mysql-config

 

 

Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/mysql-2.9.1 for inspection.

Results logged to /usr/lib64/ruby/gems/1.8/gems/mysql-2.9.1/ext/mysql_api/gem_make.out

[root@ca-sna-pm01 puppet-dashboard]#

 

 

Cory Stoker

unread,
Dec 16, 2013, 5:55:10 PM12/16/13
to puppet...@googlegroups.com
Some ruby gems are compiled and they need dependencies. In this case
you need the MySQL development files. Usually it is an RPM like
mysql-devel that you need in addition to gcc, make, etc...

The first error is probably because you specify versions in gem
differently than how you tried above. For example:

gem install mysql -v 2.9.1

But since 2.9.1 is the latest it will be installed if you leave off a version.
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/e2e8905f-8bb5-4067-a8bd-bf0b6012261b%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Stuart Cracraft

unread,
Dec 16, 2013, 6:41:40 PM12/16/13
to puppet...@googlegroups.com
You're the man Cory.

Works great.

Thanks.

Stuart
Reply all
Reply to author
Forward
0 new messages