From: Esen Sagynov Date: 2010-10-14T10:28:06+09:00 Subject: Re: Cannot install a gem on Windows x64 Luis Lavena wrote in post #949880: > seems you have tried --with-cascci-lib=C:/CUBRID/lib --with-cascci- > include=C:/CUBRID/include > Did you provide the above parameters? I did. In fact, extconf.rb automatically includes the path. But I tried manually as well. > When calling ruby extconf.rb, you can do them directly. When doing > with the gem, you need separate them with -- > gem install cubrid -- --with-cascci-lib=C:/CUBRID/lib --with-cascci- > include=C:/CUBRID/include I have just tried this, but the same error: "checking for cci_init() in -lcascci... no". I don't understand, Ruby should at least see the library. If x64 compiled library is the problem, it should see it and say "not compatible" or "not Win32" at least. But Ruby cannot find the library at all. > Are you sure are supplying these parameters to the gem installation? Absolutely. > No, Ruby is 32bits, you don't need a 64bits cubrid library because is > not going to work (32bits Ruby needs 32bits libraries) It's good to know this for sure. > Something I noticed is that CUBRID libraries were compiled with newer > Visual C runtime libraries. That might have issues (or not, since > haven't installed it to test). For building CUBRID on Windows, Visual Studio 2008 is used. I am not sure about Ruby. I wonder how did you "noticed is that CUBRID libraries were compiled with newer Visual C runtime libraries"? How is it possible to notice? Luis Lavena wrote in post #949882: > You have CUBRID x64 installed. But Ruby is 32bits. That will not work. > You can't mix 32bits Ruby with 64bits libraries. > You need CUBRID 32bits libraries to compile against. If so, how users use MySQL x64 with Ruby? I heard many cases downloading third-party x64 compiled libmysql and successfully using it with Ruby. So how is that possible if Ruby SHOULD NEVER work with x64 compiled libraries? What about on Linux x64 with MySQL x64 and Ruby installed? It just does not make any sense to me. -- Posted via http://www.ruby-forum.com/.