20130416

Instalar sqlite en HP UX

Vemos el tipo de sistema que tenemos
$ uname -a HP-UX servidor B.11.23 U ia64 3210103145 unlimited-user license
Se observa
 HP-UX  Unix HP-UX
 B.11.23 Version 11.23
 ia64 itanium a 64bits


Obtener el binario http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/sqlite-3.7.15.2/

$ mkdir sqlite && cd $_
$ wget http://hpux.connect.org.uk/ftp/hpux/Development/Libraries/sqlite-3.7.15.2/sqlite-3.7.15.2-ia64-11.23.depot.gz

Desempaquetar
$ gunzip sqlite-3.7.15.2-ia64-11.31.depot.gz
$ file sqlite-3.7.15.2-ia64-11.31.depot 
sqlite-3.7.15.2-ia64-11.31.depot:       tar file
$ tar -xvf sqlite-3.7.15.2-ia64-11.31.depot 
x catalog/INDEX, 715 bytes, 2 tape blocks
x catalog/dfiles/INDEX, 193 bytes, 1 tape blocks
x catalog/dfiles/INFO, 138 bytes, 1 tape blocks
x catalog/sqlite/pfiles/INDEX, 359 bytes, 1 tape blocks
x catalog/sqlite/pfiles/INFO, 138 bytes, 1 tape blocks
x catalog/sqlite/sqlite-RUN/INDEX, 163 bytes, 1 tape blocks
x catalog/sqlite/sqlite-RUN/INFO, 1556 bytes, 4 tape blocks
x sqlite/sqlite-RUN/usr/local/bin/sqlite3, 242276 bytes, 474 tape blocks
x sqlite/sqlite-RUN/usr/local/doc/sqlite/HPUX.Install, 3827 bytes, 8 tape blocks
x sqlite/sqlite-RUN/usr/local/doc/sqlite/README, 1732 bytes, 4 tape blocks
x sqlite/sqlite-RUN/usr/local/doc/sqlite/VERSION, 9 bytes, 1 tape blocks
x sqlite/sqlite-RUN/usr/local/include/sqlite3.h, 343763 bytes, 672 tape blocks
x sqlite/sqlite-RUN/usr/local/include/sqlite3ext.h, 24158 bytes, 48 tape blocks
x sqlite/sqlite-RUN/usr/local/lib/hpux32/libsqlite3.a, 2999758 bytes, 5859 tape blocks
x sqlite/sqlite-RUN/usr/local/lib/hpux32/libsqlite3.la, 958 bytes, 2 tape blocks
x sqlite/sqlite-RUN/usr/local/lib/hpux32/libsqlite3.so, 2361636 bytes, 4613 tape blocks
x sqlite/sqlite-RUN/usr/local/lib/hpux32/pkgconfig/sqlite3.pc, 268 bytes, 1 tape blocks
x sqlite/sqlite-RUN/usr/local/lib/tcltk/sqlite3/libtclsqlite3.so, 162364 bytes, 318 tape blocks
x sqlite/sqlite-RUN/usr/local/lib/tcltk/sqlite3/pkgIndex.tcl, 100 bytes, 1 tape blocks


Ejecutamos
$ sqlite/sqlite-RUN/usr/local/bin/sqlite3
/usr/lib/hpux32/dld.so: Unable to find library 'libsqlite3.so'.
Killed

Falla por la librería Agregamos la ruta de la librería
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:sqlite/sqlite-RUN/usr/local/lib/tcltk/sqlite3:sqlite/sqlite-RUN/usr/local/lib/hpux32

Ejecutamos
$ sqlite/sqlite-RUN/usr/local/bin/sqlite3                                                                                     
/usr/lib/hpux32/dld.so: Unable to find library 'libreadline.so'.
Killed

Nos falta la libería de readline
$ wget http://hpux.connect.org.uk/ftp/hpux/Gnu/readline-6.2.004/readline-6.2.004-ia64-11.23.depot.gz
$ gunzip readline-6.2.004-ia64-11.23.depot.gz
$  tar -xvf readline-6.2.004-ia64-11.23.depot 
x catalog/INDEX, 956 bytes, 2 tape blocks
x catalog/dfiles/INDEX, 193 bytes, 1 tape blocks
x catalog/dfiles/INFO, 138 bytes, 1 tape blocks
x catalog/readline/pfiles/INDEX, 431 bytes, 1 tape blocks
x catalog/readline/pfiles/INFO, 138 bytes, 1 tape blocks
x catalog/readline/readline-INC/INDEX, 165 bytes, 1 tape blocks
x catalog/readline/readline-INC/INFO, 1109 bytes, 3 tape blocks
x catalog/readline/readline-RUN/INDEX, 167 bytes, 1 tape blocks
x catalog/readline/readline-RUN/INFO, 3457 bytes, 7 tape blocks
x readline/readline-INC/usr/local/include/readline/chardefs.h, 4551 bytes, 9 tape blocks
x readline/readline-INC/usr/local/include/readline/history.h, 10078 bytes, 20 tape blocks
x readline/readline-INC/usr/local/include/readline/keymaps.h, 3163 bytes, 7 tape blocks
x readline/readline-INC/usr/local/include/readline/readline.h, 36517 bytes, 72 tape blocks
x readline/readline-INC/usr/local/include/readline/rlconf.h, 2189 bytes, 5 tape blocks
x readline/readline-INC/usr/local/include/readline/rlstdc.h, 1546 bytes, 4 tape blocks
x readline/readline-INC/usr/local/include/readline/rltypedefs.h, 2845 bytes, 6 tape blocks
x readline/readline-INC/usr/local/include/readline/tilde.h, 3046 bytes, 6 tape blocks
x readline/readline-RUN/usr/local/doc/readline/CHANGELOG, 27532 bytes, 54 tape blocks
x readline/readline-RUN/usr/local/doc/readline/CHANGES, 51509 bytes, 101 tape blocks
x readline/readline-RUN/usr/local/doc/readline/COPYING, 35147 bytes, 69 tape blocks
x readline/readline-RUN/usr/local/doc/readline/HPUX.Install, 2822 bytes, 6 tape blocks
x readline/readline-RUN/usr/local/doc/readline/INSTALL, 12304 bytes, 25 tape blocks
x readline/readline-RUN/usr/local/doc/readline/NEWS, 918 bytes, 2 tape blocks
x readline/readline-RUN/usr/local/doc/readline/README, 7680 bytes, 15 tape blocks
x readline/readline-RUN/usr/local/lib/hpux32/libhistory.a, 143990 bytes, 282 tape blocks
x readline/readline-RUN/usr/local/lib/hpux32/libhistory.so, 139356 bytes, 273 tape blocks
x readline/readline-RUN/usr/local/lib/hpux32/libreadline.a, 1066422 bytes, 2083 tape blocks
x readline/readline-RUN/usr/local/lib/hpux32/libreadline.so, 635132 bytes, 1241 tape blocks
x readline/readline-RUN/usr/local/share/info/dir, 747 bytes, 2 tape blocks
x readline/readline-RUN/usr/local/share/info/history.info, 61403 bytes, 120 tape blocks
x readline/readline-RUN/usr/local/share/info/readline.info, 206047 bytes, 403 tape blocks
x readline/readline-RUN/usr/local/share/info/rluserman.info, 79683 bytes, 156 tape blocks
x readline/readline-RUN/usr/local/share/man/man3/history.3, 22177 bytes, 44 tape blocks
x readline/readline-RUN/usr/local/share/man/man3/readline.3, 41974 bytes, 82 tape blocks
x readline/readline-RUN/usr/local/share/readline/excallback.c, 5734 bytes, 12 tape blocks
x readline/readline-RUN/usr/local/share/readline/fileman.c, 11426 bytes, 23 tape blocks
x readline/readline-RUN/usr/local/share/readline/histexamp.c, 2889 bytes, 6 tape blocks
x readline/readline-RUN/usr/local/share/readline/manexamp.c, 3300 bytes, 7 tape blocks
x readline/readline-RUN/usr/local/share/readline/rl-fgets.c, 11147 bytes, 22 tape blocks
x readline/readline-RUN/usr/local/share/readline/rl.c, 3179 bytes, 7 tape blocks
x readline/readline-RUN/usr/local/share/readline/rlcat.c, 3299 bytes, 7 tape blocks
x readline/readline-RUN/usr/local/share/readline/rlevent.c, 3295 bytes, 7 tape blocks
x readline/readline-RUN/usr/local/share/readline/rlptytest.c, 6531 bytes, 13 tape blocks
x readline/readline-RUN/usr/local/share/readline/rltest.c, 2146 bytes, 5 tape blocks
x readline/readline-RUN/usr/local/share/readline/rlversion.c, 1287 bytes, 3 tape blocks

Agregamos al path
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:readline/readline-RUN/usr/local/lib/hpux32

Ejecutamos
$ sqlite/sqlite-RUN/usr/local/bin/sqlite3
SQLite version 3.7.15.2 2013-01-09 11:53:05
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .quit
$

Listo