14

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

27

It should be

./configure
make
sudo make install

You could install it through the repo's

sudo apt-get install sqlite3 libsqlite3-dev
4
  • 2
    you are right sir
    – leon
    Sep 2 '13 at 21:34
  • 2
    I would like to add that if you need to have the sqlite driver (for example, to use it along with Doctrine) or wish to enable sqlite for php, please run in the terminal apt-get install php5-sqlite Dec 16 '14 at 2:27
  • Probably slightly off topic, but apptitude warns me about not being able to authenticate this package. Is that just in my case? I am wondering how can this be the case with sqlite (quite popular).
    – 0xc0de
    Aug 29 '16 at 19:15
  • never mind, I understood what was wrong.
    – 0xc0de
    Aug 29 '16 at 19:18
4

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.

1
  • 7
    It will install sqlite version 2 unless you use sudo apt-get install sqlite3 May 17 '18 at 14:59
3

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

2
  • who said anything about PHP?
    – iconoclast
    Apr 3 '19 at 2:48
  • It is a way of installing sqlite if you need to install the PHP library too. I believe these commands have a dependency on sqlite and will include it as a dependency. Been a long time but I think that is why I posted it as an answer. Apr 3 '19 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.