On May 7, 2013, at 10:22 AM, Ao Xu <xat...@gmail.com> wrote:

> I tried to install lsqlite3 on OS X 10.8 , but didn't work. Here are the 
> details:
> 
> …
> export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 -fPIC 
> -I/usr/local/opt/lua/include -c lsqlite3.c -o lsqlite3.o -I/usr/local/include
> export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -bundle -undefined dynamic_lookup 
> -all_load -o lsqlite3.so -L/usr/local/opt/lua/lib lsqlite3.o -L/usr/local/lib 
> -Wl,-rpath,/usr/local/lib: -lsqlite3
> ld: -rpath can only be used when targeting Mac OS X 10.5 or later

What version of luarocks are you using? You can check that, and the status os 
your configuration files by running luarocks without arguments.

Check your local configuration at ~/.luarocks/config.lua

Mine is:

variables = {
 -- CC = "export MACOSX_DEPLOYMENT_TARGET=10.6; gcc -arch i686 -arch x86_64",
 -- LD = "export MACOSX_DEPLOYMENT_TARGET=10.6; gcc -arch i686 -arch x86_64"
 CC = "export MACOSX_DEPLOYMENT_TARGET=10.6; cc -arch i686 -arch x86_64",
 LD = "export MACOSX_DEPLOYMENT_TARGET=10.6; cc -arch i686 -arch x86_64"
}

and lsqlite3 builds for me.

You are probably fine with just:

variables = {
 CC = "export MACOSX_DEPLOYMENT_TARGET=10.8; cc ",
 LD = "export MACOSX_DEPLOYMENT_TARGET=10.8; cc "
}

e


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to