mysql2 icon indicating copy to clipboard operation
mysql2 copied to clipboard

don't know how to make dirsyntax

Open osauzet opened this issue 12 years ago • 11 comments

Hi

When i try to "bundle install" or "gem install" i have this error

http://pastebin.com/nXB3L8qd

The host is a FreeBSD10.0-RELEASE (in a jail) ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [amd64-freebsd10]

Thanks...

osauzet avatar Jun 16 '14 15:06 osauzet

Can you try this with Ruby 2.1.2?

sodabrew avatar Jun 16 '14 17:06 sodabrew

sorry i cant try easily because i use pkg, not the port compilation ....

osauzet avatar Jun 17 '14 07:06 osauzet

Try export MAKE=make gem install per https://github.com/sstephenson/ruby-build/issues/496 ?

sodabrew avatar Jun 17 '14 11:06 sodabrew

thanks for your help, but its not better


export MAKE="make"; gem install mysql2 -v '0.3.16'

Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension.

/usr/local/bin/ruby21 extconf.rb checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... yes checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for rb_hash_dup()... yes checking for rb_intern3()... yes

Using mysql_config at /usr/local/bin/mysql_config

checking for mysql.h... yes checking for errmsg.h... yes checking for mysqld_error.h... yes

Setting rpath to /usr/local/lib/mysql

creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" make: don't know how to make dirsyntax. Stop

make: stopped in /usr/local/lib/ruby/gems/2.1/gems/mysql2-0.3.16/ext/mysql2

make failed, exit code 2

Gem files will remain installed in /usr/local/lib/ruby/gems/2.1/gems/mysql2-0.3.16 for inspection.

Results logged to /usr/local/lib/ruby/gems/2.1/extensions/amd64-freebsd-10/2.1/mysql2-0.3.16/gem_make.out

osauzet avatar Jun 17 '14 12:06 osauzet

Please post the contents of ext/mysql2/gem_make.out and the Makefile that might be in tmp/YOUROS/mysql2/2.1.1/Makefile

sodabrew avatar Jun 17 '14 13:06 sodabrew

/usr/local/lib/ruby/gems/2.1/extensions/amd64-freebsd-10/2.1/mysql2-0.3.16/gem_make.out here : http://pastebin.com/2Q94T1GR

/usr/local/lib/ruby/gems/2.1/gems/mysql2-0.3.16/ext/mysql2/Makefile here : http://pastebin.com/H35a9yWR

thanks.

osauzet avatar Jun 17 '14 14:06 osauzet

Nothing looks obviously wrong. What is the output from make --version ?

sodabrew avatar Jun 17 '14 16:06 sodabrew

make -V MAKE_VERSION 20130904

osauzet avatar Jun 17 '14 16:06 osauzet

Ok, that's BSD make. Let's see if GNU make helps: MAKE=gmake gem install mysql2

sodabrew avatar Jun 17 '14 18:06 sodabrew

Ok, it works ! :) Thank you very much !!

osauzet avatar Jun 18 '14 09:06 osauzet

Glad to hear!

Please file a FreeBSD pkg bug - this is a ruby bug that may have been fixed upstream already in ruby 2.1.2 (which is a bugfix release in the ruby 2.1 series; they switched to semantic versioning instead of the old patch level thing!).

sodabrew avatar Jun 18 '14 14:06 sodabrew