[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
[Windows] gem install sqlite3 cannot be done ~ Cannot create temporary file in C: \ version ~
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
`Array # index` cannot be searched from the middle,` String # index` can be
Because getSupportLoaderManager cannot be used
Java Stream cannot be reused.
When the certificate cannot be obtained by https-portal production (Response Code: 403)
gem install cocoapods failed ('ruby/config.h' file not found)
When [command not found: composer] is displayed when [composer install] is displayed in Laravel