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

Mitch
  • 106,657
  • 24
  • 210
  • 268
leon
  • 141
  • 1
  • 1
  • 3

4 Answers4

27

It should be

./configure
make
sudo make install

You could install it through the repo's

sudo apt-get install sqlite3 libsqlite3-dev
wojox
  • 11,152
  • 5
  • 40
  • 60
  • 2
    you are right sir – leon Sep 02 '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` – pablofiumara Dec 16 '14 at 02: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.

james-see
  • 234
  • 2
  • 9
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

Elijah Lynn
  • 3,738
  • 3
  • 27
  • 40
  • who said anything about PHP? – iconoclast Apr 03 '19 at 02: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. – Elijah Lynn Apr 03 '19 at 17:50
0

Your style is unique in comparison to other people I've read stuff from. Thanks for posting when you've got the opportunity, Guess I'll just book mark this site.

Web Designing Training in Bangalore

Web Designing Course in Bangalore

Web Development Training in Bangalore

Web Development Course in Bangalore

Front End Development Training in Bangalore

Front End Development Course in Bangalore

  • This does not provide an answer to the question. Once you have sufficient [reputation](https://askubuntu.com/help/whats-reputation) you will be able to [comment on any post](https://askubuntu.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/1304355) – TommyPeanuts Jun 24 '23 at 21:04