Created
June 2, 2013 08:51
-
-
Save danieltdt/5693070 to your computer and use it in GitHub Desktop.
Install UnQLite as a shared library on Linux (tested on ubuntu 12.04).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Before executing it, you must download UnQLite source code (http://www.unqlite.org/downloads.html) | |
# unzip all the files and execute this script inside the unzipped folder. For example: | |
# mkdir /tmp/unqlite; cd /tmp/unqlite; unzip ~/Downloads/unqlite-db-116.zip | |
gcc -Wall -fPIC -c *.c | |
gcc -shared -Wl,-soname,libunqlite.so.1 -o libunqlite.so.1.0 *.o | |
sudo cp `pwd`/libunqlite.so.1.0 /usr/local/lib/ | |
sudo cp `pwd`/unqlite.h /usr/local/include/ | |
sudo ln -sf /usr/local/lib/libunqlite.so.1.0 /usr/local/lib/libunqlite.so.1 | |
sudo ln -sf /usr/local/lib/libunqlite.so.1 /usr/local/lib/libunqlite.so |
Sorry @no-glue , I don't use ubuntu anymore and I can't test :(
It should work because the only thing it does is symlink to ubuntu default folders... Try run ldconfig /usr/local/lib/libunqlite.so
also, it may help.
This teaches to compile and install sqlite3
as Ruby gem on Windows 7. I did it. Works. @danieltdt, do you know instruct me something analogous with UnQLite
?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does this work on ubuntu 14.04?