sqlite installation

I'm installing sqlite like this SQLite - Installation

I get this error, anyone know what to do?

anonymous@Anonymous:~/sqlite-autoconf-3080001$ make install
make[1]: Entering directory `/home/anonymous/sqlite-autoconf-3080001'
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libsqlite3.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libsqlite3.so.0.8.6 /usr/local/lib/libsqlite3.so.0.8.6
/usr/bin/install: cannot create regular file `/usr/local/lib/libsqlite3.so.0.8.6': Permission denied
make[1]: *** [install-libLTLIBRARIES] Error 1
make[1]: Leaving directory `/home/anonymous/sqlite-autoconf-3080001'
make: *** [install-am] Error 2
anonymous@Anonymous:~/sqlite-autoconf-3080001$ 

Sorry I don't know the proper way of putting it in


It should be

./configure
make
sudo make install

You could install it through the repo's

sudo apt-get install sqlite3 libsqlite3-dev

You can now use sudo apt-get install sqlite and it will recognize and install all dependencies and related packages for sqlite to work properly.


You can also do:

sudo apt-get install php5-sqlite for PHP 5.5

sudo apt-get install php5.6-sqlite for PHP 5.6