Installation Libspatialite error, error: ' Libsqlite3 ' is required

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.