gem install sqlite3-ruby fails on cygwin
If you are installing via Rubygems, the output on the terminal may complain about not being able to find sqlite3.h
. This is misleading. If you check the mkmf.log
file, you may find that an entirely different header file is actually missing. Generally the header file can be installed via the corresponding Cygwin package. In my case, I made sure to install each of:
libcrypt-devel
libsqlite3-devel
libgmp-devel
Fixed by following 2 steps :-
a) cd to /usr/lib (where the libcrypto.a and libcrypto.dll.a files are located)
b) make a local copy of libcrypto.a and rename to libcrypt.a
Run gem install sqlite3
Run rails new my_app1
Works so far ....
The problem is that gcc is not able to find "crypt" library mentioned by '-lcrypt' flag.install "libcrypt-devel" package from cygwin packages...