Created
May 20, 2013 15:28
-
-
Save switzer/5612958 to your computer and use it in GitHub Desktop.
luuid fail on mac
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
$ brew list | |
autoconf automake libtool mongodb node readline | |
$ brew install luarocks | |
==> Installing luarocks dependency: lua | |
==> Downloading http://www.lua.org/ftp/lua-5.1.5.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/lua-5.1.5.tar.gz | |
==> Patching | |
patching file Makefile | |
patching file src/Makefile | |
==> make macosx INSTALL_TOP=/usr/local/Cellar/lua/5.1.5 INSTALL_MAN=/usr/local/Cellar/lua/5.1.5/share/man/man1 | |
==> make install INSTALL_TOP=/usr/local/Cellar/lua/5.1.5 INSTALL_MAN=/usr/local/Cellar/lua/5.1.5/share/man/man1 | |
🍺 /usr/local/Cellar/lua/5.1.5: 15 files, 288K, built in 3 seconds | |
==> Installing luarocks | |
==> Downloading http://luarocks.org/releases/luarocks-2.0.12.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/luarocks-2.0.12.tar.gz | |
==> Patching | |
patching file src/luarocks/fs/lua.lua | |
==> ./configure --prefix=/usr/local/Cellar/luarocks/2.0.12 --rocks-tree=/usr/local --sysconfdir=/usr/local/etc/luarocks | |
==> make | |
==> make install | |
==> Caveats | |
Rocks install to: /usr/local/lib/luarocks/rocks | |
You may need to run `luarocks install` inside the Homebrew build | |
environment for rocks to successfully build. To do this, first run `brew sh`. | |
==> Summary | |
🍺 /usr/local/Cellar/luarocks/2.0.12: 60 files, 476K, built in 2 seconds | |
$ luarocks install luuid | |
Installing http://www.luarocks.org/repositories/rocks/luuid-20101118-1.src.rock... | |
Using http://www.luarocks.org/repositories/rocks/luuid-20101118-1.src.rock... switching to 'build' mode | |
Archive: /private/tmp/luarocks_luarocks-rock-luuid-20101118-1-4875/luuid-20101118-1.src.rock | |
inflating: luuid-20101118-1.rockspec | |
extracting: luuid.tar.gz | |
Error: Could not find expected file libuuid.a, or libuuid.dylib, or libuuid.so.*, or libuuid.dylib for LIBUUID -- you may have to install LIBUUID in your system and/or pass LIBUUID_DIR or LIBUUID_LIBDIR to the luarocks command. Example: luarocks install luuid LIBUUID_DIR=/usr/local | |
$ brew install ossp-uuid | |
==> Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/ossp-uuid-1.6.2.tar.gz | |
==> ./configure --prefix=/usr/local/Cellar/ossp-uuid/1.6.2 --without-perl --without-php --without-pgsql | |
==> make | |
==> make install | |
==> Caveats | |
This formula is keg-only: so it was not symlinked into /usr/local. | |
OS X provides a uuid.h which conflicts with ossp-uuid's header. | |
Generally there are no consequences of this for you. If you build your | |
own software and it requires this formula, you'll need to add to your | |
build variables: | |
LDFLAGS: -L/usr/local/opt/ossp-uuid/lib | |
CPPFLAGS: -I/usr/local/opt/ossp-uuid/include | |
==> Summary | |
🍺 /usr/local/Cellar/ossp-uuid/1.6.2: 15 files, 232K, built in 19 seconds | |
$ luarocks install luuid LIBUUID_LIBDIR=/usr/local/opt/ossp-uuid/lib | |
Installing http://www.luarocks.org/repositories/rocks/luuid-20101118-1.src.rock... | |
Using http://www.luarocks.org/repositories/rocks/luuid-20101118-1.src.rock... switching to 'build' mode | |
Archive: /private/tmp/luarocks_luarocks-rock-luuid-20101118-1-105/luuid-20101118-1.src.rock | |
inflating: luuid-20101118-1.rockspec | |
extracting: luuid.tar.gz | |
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/opt/lua/include -c luuid.c -o luuid.o | |
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -bundle -undefined dynamic_lookup -all_load -o uuid.so -L/usr/local/opt/lua/lib luuid.o -luuid | |
ld: library not found for -luuid | |
collect2: ld returned 1 exit status | |
stat: uuid.so: stat: No such file or directory | |
Error: Build error: Failed installing uuid.so in /usr/local/lib/luarocks/rocks/luuid/20101118-1/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment