don't know how to make dirsyntax
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...
Can you try this with Ruby 2.1.2?
sorry i cant try easily because i use pkg, not the port compilation ....
Try export MAKE=make gem install per https://github.com/sstephenson/ruby-build/issues/496 ?
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
Please post the contents of ext/mysql2/gem_make.out and the Makefile that might be in tmp/YOUROS/mysql2/2.1.1/Makefile
/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.
Nothing looks obviously wrong. What is the output from make --version ?
make -V MAKE_VERSION 20130904
Ok, that's BSD make. Let's see if GNU make helps: MAKE=gmake gem install mysql2
Ok, it works ! :) Thank you very much !!
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!).