Recently installed Libspatialite, but compiled to half of the reported
Error: ' Libsqlite3 ' is required but it doesn ' t seem to being installed on the this system.
So I installed Sqlite3-master
wget Https://github.com/LuaDist/libsqlite3/archive/master.zip
./configure;make;make install a set down, loaded, also has this library file libsqlite3.so
Located,/usr/local/lib, but when I compile libspatialite again, the error remains, so I will
/usr/local/lib added to/etc/ld.so.conf, and then executed Ldconfig, but the error remained.
Guess when compiling libspatialite, did not go to/usr/local/lib read libsqlite3.so library file, so
Set Export "ldflags=-l/usr/local/lib" force GCC to read the library file in the/usr/local/lib, and then again
Compile, pass! Here are the two compile parameters, as follows:
CFLAGS : Specifies the path to the header file (. h file), such as: Cflags=-i/usr/include-i/path/include. Similarly, when a package is installed, an include directory is created under the installation path, and when a problem occurs during the installation, try adding the Include directory of the previously installed package to the variable.
Ldflags : Some of the optimization parameters used by the compiler, such as GCC, or the location of the library files can be specified. Usage: ldflags=-l/usr/lib-l/path/to/your/lib. Each installation of a package will almost certainly create a Lib directory in the installation directory. If you install a package clearly, and install another package, it Leng said to find, you can express the Lib path of the package to join the Ldfalgs to try.
LIBS: Tell the linker which library files to link to, such as LIBS =-lpthread-liconv
Installation Libspatialite error, error: ' Libsqlite3 ' is required