lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


reposting, as my previous post doesn't seem to have gone through.

On Thu, Sep 12, 2013 at 12:07 AM, Jayanth Acharya <jayachar88@gmail.com> wrote:
On attempting to install the ConcurrentLua module, using luarocks, I face what looks like errors while installing the dependencies (specifically coxpcall).



Missing dependencies for copas:
coxpcall >= 1.13

Archive:  /tmp/luarocks_luarocks-rock-coxpcall-1.13.0-1-3233/coxpcall-1.13.0-1.all.rock
  inflating: coxpcall-1.13.0-1.rockspec 
   creating: doc/
   creating: doc/us/
  inflating: doc/us/license.html    
  inflating: doc/us/coxpcall.png    
  inflating: doc/us/index.html      
   creating: lua/
  inflating: lua/coxpcall.lua       
Updating manifest for /usr/local/lib/luarocks/rocks

coxpcall 1.13.0-1 is now installed in /usr/local/ (license: MIT/X11)
Updating manifest for /usr/local/lib/luarocks/rocks

copas 1.1.6-1 is now installed in /usr/local/ (license: MIT/X11)
Applying patch 01-makefile1.patch...
successfully patched /tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/concurrent/Makefile
Applying patch 02-makefile2.patch...
successfully patched /tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/concurrent/distributed/Makefile
cd src && make all
make[1]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src'
cd cltime && make all
make[2]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/cltime'
gcc -O2 -fPIC -I/usr/include/lua5.1   -c -o cltime.o cltime.c
gcc -o cltime.so -shared -L/usr/local/lib cltime.o
make[2]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/cltime'
cd concurrent && make all
make[2]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/concurrent'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/concurrent'
cd cldaemon && make all
make[2]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/cldaemon'
gcc -O2 -fPIC -I/usr/include/lua5.1   -c -o cldaemon.o cldaemon.c
gcc -o cldaemon.so -shared -L/usr/local/lib cldaemon.o
make[2]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/cldaemon'
cd clpmd && make all
make[2]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/clpmd'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/clpmd'
make[1]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src'
cd src && make install
make[1]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src'
cd cltime && make install
make[2]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/cltime'
if test ! -d /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib; \
        then mkdir -p /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib; \
    fi
cp -f cltime.so /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib/cltime.so.1.0.0 && \
        chmod 0755 /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib/cltime.so.1.0.0 && \
        cd /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib && \
        ln -fs cltime.so.1.0.0 cltime.so
make[2]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/cltime'
cd concurrent && make install
make[2]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/concurrent'
if test ! -d /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lua/concurrent; \
        then mkdir -p /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lua/concurrent; \
    fi
cp -f init.lua option.lua process.lua message.lua scheduler.lua register.lua monitor.lua link.lua root.lua /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lua/concurrent && \
        cd /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lua/concurrent && \
        chmod 0644 init.lua option.lua process.lua message.lua scheduler.lua register.lua monitor.lua link.lua root.lua
cd distributed && make install
make[3]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/concurrent/distributed'
if test ! -d /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lua/concurrent/distributed; \
        then mkdir -p /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lua/concurrent/distributed; \
    fi
cp -f init.lua network.lua node.lua cookie.lua process.lua message.lua scheduler.lua register.lua link.lua monitor.lua /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lua/concurrent/distributed && \
        cd /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lua/concurrent/distributed && \
        chmod 0644 init.lua network.lua node.lua cookie.lua process.lua message.lua scheduler.lua register.lua link.lua monitor.lua
make[3]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/concurrent/distributed'
make[2]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/concurrent'
cd cldaemon && make install
make[2]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/cldaemon'
if test ! -d /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib; \
        then mkdir -p /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib; \
    fi
cp -f cldaemon.so /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib/cldaemon.so.1.0.0 && \
        chmod 0755 /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib/cldaemon.so.1.0.0 && \
        cd /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib && \
        ln -fs cldaemon.so.1.0.0 cldaemon.so
make[2]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/cldaemon'
cd clpmd && make install
make[2]: Entering directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/clpmd'
if test ! -d /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/bin; \
        then mkdir -p /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/bin; \
    fi
cp -f clpmd /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/bin && \
        cd /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/bin && \
        chmod 0755 clpmd
make[2]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src/clpmd'
make[1]: Leaving directory `/tmp/luarocks_concurrentlua-1.0-2-805/concurrentlua-1.0/src'
cp: cannot stat `/usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib/cldaemon.so': No such file or directory

Error: Failed copying /usr/local/lib/luarocks/rocks/concurrentlua/1.0-2/lib/cldaemon.so to /usr/local//lib/lua/5.1/cldaemon.so

---

Why do I get this error ? I checked the target location, and the .so already exists there, but this was the first time I was installing the module using luarocks ? So, was it part of the base lua5.1 installation ? Shouldn't luarocks have been able to figure out that the dependency was already being met, and thus avoid rebuild/reinstalling of the dependency again ?