[Puppet Users] gem install error

2013-12-16 Thread Stuart Cracraft
 
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]#

 

 

-- 
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+unsubscr...@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.


Re: [Puppet Users] gem install error

2013-12-16 Thread Cory Stoker
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.

On Mon, Dec 16, 2013 at 3:37 PM, Stuart Cracraft  wrote:
>
> 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]#
>
>
>
>
>
> --
> 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+unsubscr...@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.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAJNEtxu%2BkQNH6p%2BZ4gkOGfB7ZmvCpptVFGn8B91L294hsMOOOA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.