sqlite3 install error
Daniel J. Luke
dluke at geeklair.net
Thu Mar 22 13:04:50 PDT 2007
On Mar 22, 2007, at 2:52 PM, Christopher W. MacMinn wrote:
> I am trying to install sqlite3 (actually, subversion -- but
> apparently it depends on sqlite3) via MacPorts and I'm getting an
> error that looks like this:
apr-util depends on sqlite3.
To get things working quickly, you could probably do:
port clean --all apr-util
port install apr-util +no_sqlite
port install subversion
Of course, future subversion releases are supposed to use sqlite for
storing various things, so you might not want to go the quick route...
> $ sudo port install subversion
> ---> Building sqlite3 with target all
> Error: Target com.apple.build returned: shell command "cd "/opt/
> local/var/db/dports/build/
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_
> dports_databases_sqlite3/work/sqlite-3.3.13" && CFLAGS="-I/opt/
> local/include/ -DSQLITE_ENABLE_LOCKING_STYLE=1" LDFLAGS="-L/opt/
> local/lib" gnumake all" returned error 2
> Command output: ./libtool --mode=link /usr/bin/gcc-4.0 -g -O2 -
> DOS_UNIX=1 -DHAVE_USLEEP=1 -I. -I./src -DNDEBUG -DTHREADSAFE=1 -
> DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_ENABLE_LOCKING_STYLE=1 -
> DSQLITE_OMIT_LOAD_EXTENSION=1 -DHAVE_READLINE=1 -I/opt/local/
> include/ -DSQLITE_ENABLE_LOCKING_STYLE=1 -lpthread \
> -o sqlite3 ./src/shell.c libsqlite3.la \
> -L/opt/local/lib -lreadline
> /usr/bin/gcc-4.0 -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -I. -I./src -
> DNDEBUG -DTHREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -
> DSQLITE_ENABLE_LOCKING_STYLE=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -
> DHAVE_READLINE=1 -I/opt/local/include/ -
> DSQLITE_ENABLE_LOCKING_STYLE=1 -o .libs/sqlite3 ./src/
> shell.c ./.libs/libsqlite3.dylib -lpthread -L/opt/local/lib -
> lreadline
> /usr/bin/ld: warning can't open dynamic library: /opt/local/var/db/
> dports/build/
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_
> dports_devel_ncurses/work/destroot/opt/local/lib/libncurses.5.dylib
> referenced from: /opt/local/lib/libreadline.dylib (checking for
> undefined symbols may be affected) (No such file or directory,
> errno = 2)
It looks like for some reason libreadline is linked against the
libncurses from the build directory instead of the installed one.
Try:
port -f uninstall readline
port clean --all readline
port install readline
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-users/attachments/20070322/598714eb/PGP.bin
More information about the macports-users
mailing list