i want some help to install Mysql2 -v '0.3.14' for rails 4 on windows 7
always after run the command `gem install mysql2 -v '0.3.14'
i always get the error
c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for ruby/thread.h... no
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
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... 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=c:/RailsInstaller/Ruby1.9.3/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlib
Note : when i installed the mysql2 -v 0.2.6 it installed with me well
but i don't know why i get this error with the v 0.3.14
how i solve this issue ??
also when i tried to install it with the command
gem install mysql --platform=ruby -- --with-mysql-include=C:\mysql-connector-c-noinstall-6.0.2-win32\include --with-mysql-lib=C:\mysql-connector-c-noinstall-6.0.2-win32\lib
i got the error
c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb --with-mysql-include=c:mysql-connector-c-noinstall-6.0.2-win32include --with-mysql-lib=mysql-connector-c-noinstall-6.0.2-win32lib
checking for main() in -llibmysql... 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=c:/RailsInstaller/Ruby1.9.3/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include=${mysql-dir}/include
--with-mysql-lib=${mysql-dir}/lib
--with-libmysqllib
--without-libmysqllib
1-first download the mysql-connector-c-6.1.3-win32 from this page
http://dev.mysql.com/downloads/connector/c/
Note : download the ZIP Archive file
2- unZip the file in your c drive to be like that
C:\mysql-connector
3- run the command
$ gem install mysql2 -v 0.3.14 -- '--with-mysql-dir="C:\mysql-connector"'
it should gives you the result
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed mysql2-0.3.14
1 gem installed
Installing ri documentation for mysql2-0.3.14...
Installing RDoc documentation for mysql2-0.3.14...
4- if you got the error mysql2 gem compiled for wrong mysql client library
you need to get the dll file from your connector files
you will find it in the path
C:\mysql-connector\lib\libmysql.dll
then copy it to your Ruby bin folder
you will find it maybe the is path
C:\Ruby200\bin
libmysql.dll is what MySQL2 is looking for. The file is in the lib folder of the MySQL C connector. You can download the connector from "http://dev.mysql.com/downloads/connector/c/" MSI or ZiP, but make sure you get the same architecture 32bit or 64bit. Otherwise you will get an error while installing mySQL2 gem saying "Comparison between signed and unsigned integer expressions" and a whole bunch of 'undefined reference"
Once the connector is downloaded and installed(if you downloaded MSI), open "MySQL Connector C 6.1" where 6.1 is the version number - the folder is in Program Files (Program Files (x86) if you downloaded 32bit version). Go to 'lib' folder and copy 'libmysql.dll' and 'libmysql.lib' and paste them to the 'lib' folder of your mysql server directory like 'C:\MySQL\MySQL_Server_5.6\lib'
then 'gem install mysql -v [version number] -- --with-mysql-dir="C:\MySQL\MySQL_Server_5.6\"'
Related
Here is the error I'm getting when trying to deploy to Heroku using the most recent stack (20)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/build_20bfe735/vendor/bundle/ruby/2.6.0/gems/prawn-gmagick-0.0.9/ext/image
/tmp/build_20bfe735/vendor/ruby-2.6.6/bin/ruby -I
/tmp/build_20bfe735/vendor/ruby-2.6.6/lib/ruby/2.6.0 -r
./siteconf20210328-11397-1gaqmyj.rb extconf.rb
creating Makefile
current directory:
/tmp/build_20bfe735/vendor/bundle/ruby/2.6.0/gems/prawn-gmagick-0.0.9/ext/image
make "DESTDIR=" clean
current directory:
/tmp/build_20bfe735/vendor/bundle/ruby/2.6.0/gems/prawn-gmagick-0.0.9/ext/image
make "DESTDIR="
compiling image.c
image.c:3:10: fatal error: wand/magick_wand.h: No such file or directory
3 | #include <wand/magick_wand.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:245: image.o] Error 1
make failed, exit code 2
Same error after I tried this buildpack with graphicsmagick
https://elements.heroku.com/buildpacks/bogini/heroku-buildpack-graphicsmagick
So, after playing a bit I made it work by adding 3 additional dependencies to the Aptfile in the example above
libgraphicsmagick++3
libgraphicsmagick++1-dev
libgraphicsmagick-q16-3
So the final Aptfile looks like this
debhelper
g++
gsfonts
libbz2-dev
libexif-dev
libfreetype6-dev
libice-dev
libjbig-dev
libjpeg-dev
liblcms2-dev
libltdl-dev
libpng-dev
libsm-dev
libtiff-dev
libwebp-dev
libwmf-dev
libx11-dev
libxext-dev
libxml2-dev
perl
sharutils
transfig
x11proto-core-dev
zlib1g-dev
libgraphicsmagick++3
libgraphicsmagick++1-dev
libgraphicsmagick-q16-3
And my buildpacks setup:
1. https://github.com/heroku/heroku-buildpack-apt
2. https://github.com/bogini/heroku-buildpack-graphicsmagick
3. heroku/ruby
Do you guys see any problem with any of those dependencies and setup?
I'm trying to install PHP version 5.6.37 from AUR using makepkg -i command, but when it reaches the moment to check for the "freetype2" it displays the error:
checking for freetype2... configure: error: freetype-config not found.
I already have 7.2 installed, but I need the 5.6 for an older project, and as in Ubuntu, I intend to have both installed.
makepkg -i
==> Making package: php56 5.6.37-1 (Wed 12 Sep 2018 12:27:39 PM +08)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found php-5.6.37.tar.xz
-> Found php-5.6.37.tar.xz.asc
-> Found php.ini.patch
-> Found apache.conf
-> Found php-fpm.conf.in.patch
-> Found logrotate.d.php-fpm
-> Found php-fpm.service
-> Found php-fpm.tmpfiles
-> Found use-enchant2.patch
-> Found php-freetype-2.9.1.patch
==> Validating source files with sha512sums...
[...]
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-vpx-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
checking for pkg-config... (cached) no
checking for freetype2... configure: error: freetype-config not found.
==> ERROR: A failure occurred in build().
Aborting...
Installing freetype2 with Pacman didn't solve it.
ln -s /usr/bin/pkg-config /usr/bin/freetype-config
and in PKGBUILD
--with-freetype-dir=no \
1. su -c "yum -y install autoconf automake gcc httpd-devel libcurl-devel libtool libxml2-devel mod_dav_svn subversion-devel"
2. wget http://downloads.atlassian.com/software/crowd/downloads/cwdapache/mod_authnz_crowd-2.2.2.tar.gz
3. tar xzf mod_authnz_crowd-2.2.2.tar.gz
4. cd mod_authnz_crowd-2.2.2
5. autoreconf --install
6. ./configure
7. make
8. su -c "make install"
I am using CentOS 7, Crowd version is 2.9, Apache Http Server version is 2.4.
Above are the steps to install crowd-apache connector in any unix-like system.
There is no issue till the first 4 steps but from the step 5 I get the following errors respectively to the commands.
So my question is:
Is crowd-apache connector compatible to CentOS 7 or any version of CentOS higher than 6.* with Apache version 2.4?
If compatible then what are the steps to accomplish this?
Or how can I get rid of these errors and successfully build crowd-apache connector in CentOS 7
[root#localhost mod_authnz_crowd-2.2.2]# autoreconf --install
libtoolize: putting auxiliary files in .'.
libtoolize: copying file./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, m4'.
libtoolize: copying filem4/libtool.m4'
libtoolize: copying file m4/ltoptions.m4'
libtoolize: copying filem4/ltsugar.m4'
libtoolize: copying file m4/ltversion.m4'
libtoolize: copying filem4/lt~obsolete.m4'
configure.ac:4: installing './config.guess'
configure.ac:4: installing './config.sub'
configure.ac:2: installing './install-sh'
configure.ac:2: installing './missing'
automake: warnings are treated as errors
/usr/share/automake-1.13/am/ltlibrary.am: warning: 'mod_authnz_crowd.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.13/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
src/Makefile.am:3: while processing Libtool library 'mod_authnz_crowd.la'
src/Makefile.am: installing './depcomp'
src/Makefile.am:8: warning: 'CFLAGS' is a user variable, you should not override it;
src/Makefile.am:8: use 'AM_CFLAGS' instead
parallel-tests: installing './test-driver'
/usr/share/automake-1.13/am/ltlibrary.am: warning: 'mod_authz_svn_crowd.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.13/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
src/svn/Makefile.am:1: while processing Libtool library 'mod_authz_svn_crowd.la'
src/svn/Makefile.am:6: warning: 'CFLAGS' is a user variable, you should not override it;
src/svn/Makefile.am:6: use 'AM_CFLAGS' instead
autoreconf: automake failed with exit status: 1
[root#localhost mod_authnz_crowd-2.2.2]# ./configure
configure: error: Could not locate Apache apxs binary
[root#localhost mod_authnz_crowd-2.2.2]# make
make: *** No targets specified and no makefile found. Stop.
[root#localhost mod_authnz_crowd-2.2.2]# su -c "make install"
make: *** No rule to make target `install'. Stop.
Apache-Crowd integration with CentOS 7 is not possible right now for the current versions mentioned above.
Apache-Crowd connector (mod_authnz_crowd-2.2.2.tar.gz) is compatible with CentOS 6.* versions.
I am trying to build libwurfl (https://github.com/filosganga/libwurfl) on CentOS. I have installed all the dependent libraries, but I am having issues with running configure for libwurfl. I am constantly getting issues with Apache headers not found issue.
If I use --with-apxs as shown below,
./configure --with-apxs=/usr/sbin/apxs/
Output:
checking for apr.h... yes
checking httpd.h usability... no
checking httpd.h presence... no
checking for httpd.h... no
configure: error: Apache headers not found.
If I add --with-apache
./configure --with-apxs=/usr/sbin/apxs/ --with-apache=/usr/include/httpd/
Output:
checking for apxs... no
checking apr.h usability... no
checking apr.h presence... no
checking for apr.h... no
configure: error: Apache Portable Runtime headers not found.
I see headers on both locations mentioned above.
Any pointers?
Thanks!
I compiled it on Ubuntu 14.04 after installing and configuring apr-1.5.2 and httpd 2.2.31. Then I compiled it in this way:./configure --with-apache='/usr/local/apache2'
I'm trying to install Rmagick gem on Windows 8, Ruby 2.0 - all with 64-bit flavour.
I installed Ruby 2.0 with RubyInstaller - version 2.0.0p247, installed DevKit-mingw64-64-4.7.2-20130224 on top. Then I installed ImageMagic - ImageMagick-6.8.6-4-Q16-x64-dll version, to be exact, with developer headers of course. All are directly on C: drive in respective subfolders without spaces in the names.
Then I try to build a gem.
gem install rmagick --platform=ruby -- --with-opt-lib=c:/ImageMagi
ck-6.8.6-Q16/lib --with-opt-include=c:/ImageMagick-6.8.6-Q16/include
the output is
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
C:/Ruby200-x64/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for stdint.h... *** 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=C:/Ruby200-x64/bin/ruby
C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:430:in `try_do': The compiler failed to ge
nerate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:561:in `try_cpp'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:1040:in `block in have_header
'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:891:in `block in checking_for
'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:336:in `block (2 levels) in p
ostpone'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:306:in `open'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:336:in `block in postpone'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:306:in `open'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:332:in `postpone'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:890:in `checking_for'
from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:1039:in `have_header'
from extconf.rb:194:in `<main>'
Gem files will remain installed in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rmagi
ck-2.13.2 for inspection.
Results logged to C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rmagick-2.13.2/ext/RMa
gick/gem_make.out
However i think the problem is not in stdint.h file. I then check a content of file
c:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\rmagick-2.13.2\ext\RMagick\
Which is
checking for Ruby version >= 1.8.5... -------------------- yes
--------------------
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby200-x64/include/ruby-2.0.0/x64-mingw32 -IC:/Ruby200-x64/include/ruby-2.0.0/ruby/backward -IC:/Ruby200-x64/include/ruby-2.0.0 -I. -Ic:/ImageMagick-6.8.6-Q16/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -LC:/Ruby200-x64/lib -Lc:/ImageMagick-6.8.6-Q16/lib -L. -lCORE_RL_magick_ -lX11 -lx64-msvcrt-ruby200 -lshell32 -lws2_32 -limagehlp -lshlwapi "
c:/devkit-x64/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/ImageMagick-6.8.6-Q16/lib/X11.lib when searching for -lX11
c:/devkit-x64/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/ImageMagick-6.8.6-Q16/lib/X11.lib when searching for -lX11
c:/devkit-x64/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/ImageMagick-6.8.6-Q16/lib\X11.lib when searching for -lX11
c:/devkit-x64/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lX11
collect2.exe: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7: return 0;
8: }
/* end */
which looks like a problem with X11.lib file. It is, of course, located in ImageMagick lib folder, it has a date of 2009, and I have no idea what to do next or what to think about this.
As I'm working with a large files - 6000x6000 pixels I would love to use 64bit versions wherether possible.
I am experiencing the same problem. Using Ruby 2.0.0p247 and gem 2.0.7 with ImageMagick 6.8.6
I have tried with the 32 bit and the 64 bit version of ImageMagick. In both cases, the terminal output is the same:
$ gem install rmagick --platform=ruby -- --with-opt-dir=/c/ImageMagick64
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-opt-dir=c:/ImageMagick64'
This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
c:/Ruby200-x64/bin/ruby.exe extconf.rb --with-opt-dir=c:/ImageMagick64
checking for Ruby version >= 1.8.5... yes
checking for stdint.h... *** 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
--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=c:/Ruby200-x64/bin/ruby
c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:430:in `try_do': The compiler failed to ge
nerate an executable file. (RuntimeError)
You have to install development tools first.
from c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:561:in `try_cpp'
from c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:1040:in `block in have_header
'
from c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:891:in `block in checking_for
'
from c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:336:in `block (2 levels) in p
ostpone'
from c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:306:in `open'
from c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:336:in `block in postpone'
from c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:306:in `open'
from c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:332:in `postpone'
from c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:890:in `checking_for'
from c:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:1039:in `have_header'
from extconf.rb:194:in `<main>'
Gem files will remain installed in c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rmagi
ck-2.13.2 for inspection.
Results logged to c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rmagick-2.13.2/ext/RMa
gick/gem_make.out
However, when I use the 32 bit version, the mkmf.log file gives me an error for both CORE_RL_magick_.lib AND X11.lib (incompatible version). When I use the 64 bit version, I only get an error on X11.lib.
This leads me to believe that the X11.lib is bad, maybe a 32 bit version included with their distribution.
My mkmf.log file is as follows:
checking for Ruby version >= 1.8.5... -------------------- yes
--------------------
"x86_64-w64-mingw32-gcc -o conftest.exe -Ic:/Ruby200-x64/include/ruby-2.0.0/x64-mingw32 -Ic:/Ruby200-x64/include/ruby-2.0.0/ruby/backward -Ic:/Ruby200-x64/include/ruby-2.0.0 -I. -Ic:/ImageMagick64/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -Lc:/Ruby200-x64/lib -Lc:/ImageMagick64/lib -L. -lCORE_RL_magick_ -lX11 -lx64-msvcrt-ruby200 -lshell32 -lws2_32 -limagehlp -lshlwapi "
c:/ruby200-x64/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/ImageMagick64/lib/X11.lib when searching for -lX11
c:/ruby200-x64/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/ImageMagick64/lib/X11.lib when searching for -lX11
c:/ruby200-x64/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/ImageMagick64/lib\X11.lib when searching for -lX11
c:/ruby200-x64/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lX11
collect2.exe: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7: return 0;
8: }
/* end */
I know it doesn't necessarily answer the question, but I was able to get the gem built by using the 32 bit version of ruby with the 32 bit ImageMagick library - it "Just Works"
Most likely you have a mismatch between versions:
Ruby x64 will only be able to compile and install rmagick x64
Ruby x86 (32 bit) will only be able to compile and install rmagick x86
Make sure that you install same version of both.