[Windows] gem install sqlite3 cannot be done ~ package configuration for sqlite3 is not found ~

Cause

SQLite source file is missing

Solution

Execute the following command on the MSYS2 console

pacman -S libsqlite-devel

After that, you can use the command prompt, so run gem install sqlite3 --platform ruby.

error contents

package configuration for sqlite3 is not found
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby26-x64/include/ruby-2.6.0/x64-mingw32 -IC:/Ruby26-x64/include/ruby-2.6.0/ruby/backward -IC:/Ruby26-x64/include/ruby-2.6.0 -I. -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong conftest.c  -L. -LC:/Ruby26-x64/lib -L. -pipe -s -fstack-protector-strong     -lx64-msvcrt-ruby260  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
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 */

Recommended Posts

[Windows] gem install sqlite3 cannot be done ~ package configuration for sqlite3 is not found ~
[Windows] gem install sqlite3 cannot be done
About the package
[Windows] gem install sqlite3 cannot be done ~ package configuration for sqlite3 is not found ~
[Android] Solution when the camera cannot be started on Android 9
What to do if the adb command cannot be executed
Because getSupportLoaderManager cannot be used
Java Stream cannot be reused.
[Windows] gem install sqlite3 cannot be done
[Windows] gem install sqlite3 cannot be done ~ package configuration for sqlite3 is not found ~
When you get LoadError (cannot load such file --ruby_file) when you require in Ruby
When dealing with whenever in Docker No such file or directory --crontab
[Windows] gem install sqlite3 cannot be done ~ Cannot create temporary file in C: \ version ~
Create a jar file that can be executed in Gradle