Wrong target dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
luarocks (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: luarocks
[serianox@
lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
Luarocks seems to be installed in a directory which is not scanned by lua using require "packagename" (i.e. '/usr/share' instead of '/usr/local/share')
Using lua5.1 and luarocks (luarocks depend on lua5.1)
[serianox@
apt-cache policy lua5.1
lua5.1:
Installed: 5.1.3-1
Candidate: 5.1.3-1
Version table:
*** 5.1.3-1 0
500 http://
100 /var/lib/
[serianox@
apt-cache policy luarocks
luarocks:
Installed: 0.6.0.2-1
Candidate: 0.6.0.2-1
Version table:
*** 0.6.0.2-1 0
500 http://
100 /var/lib/
Then loading luarocks within the command-line tool.
[serianox@
lua -lluarocks.require
lua: module 'luarocks.require' not found:
no field package.
no file './luarocks/
no file '/usr/local/
no file '/usr/local/
no file '/usr/local/
no file '/usr/local/
no file './luarocks/
no file '/usr/local/
no file '/usr/local/
no file './luarocks.so'
no file '/usr/local/
no file '/usr/local/
stack traceback:
[C]: ?
[C]: ?
Lua is searching in '/usr/local/
[serianox@
locate luarocks/
/usr/share/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Looks like I was keeping an "old" lua bin in /usr/local/bin/ with the
other one installed via apt.
Luarocks work perfectly. ;)
Thomas Duboucher a écrit : Small-Drake] :~$ Small-Drake] :~ fr.archive. ubuntu. com intrepid/universe Packages dpkg/status Small-Drake] :~$ fr.archive. ubuntu. com intrepid/universe Packages dpkg/status Small-Drake] :~$ preload[ 'luarocks. require' ] require. lua' share/lua/ 5.1/luarocks/ require. lua' share/lua/ 5.1/luarocks/ require/ init.lua' lib/lua/ 5.1/luarocks/ require. lua' lib/lua/ 5.1/luarocks/ require/ init.lua' require. so' lib/lua/ 5.1/luarocks/ require. so' lib/lua/ 5.1/loadall. so' lib/lua/ 5.1/luarocks. so' lib/lua/ 5.1/loadall. so' share/lua/ 5.1/luarocks/ require. lua', but Small-Drake] :~$ require. lua lua/5.1/ luarocks/ require. lua
> Public bug reported:
>
> Binary package hint: luarocks
>
>
> [serianox@
> lsb_release -rd
> Description: Ubuntu 8.10
> Release: 8.10
>
> Luarocks seems to be installed in a directory which is not scanned by lua using require "packagename" (i.e. '/usr/share' instead of '/usr/local/share')
> Using lua5.1 and luarocks (luarocks depend on lua5.1)
>
> [serianox@
> apt-cache policy lua5.1
> lua5.1:
> Installed: 5.1.3-1
> Candidate: 5.1.3-1
> Version table:
> *** 5.1.3-1 0
> 500 http://
> 100 /var/lib/
> [serianox@
> apt-cache policy luarocks
> luarocks:
> Installed: 0.6.0.2-1
> Candidate: 0.6.0.2-1
> Version table:
> *** 0.6.0.2-1 0
> 500 http://
> 100 /var/lib/
>
> Then loading luarocks within the command-line tool.
>
> [serianox@
> lua -lluarocks.require
> lua: module 'luarocks.require' not found:
> no field package.
> no file './luarocks/
> no file '/usr/local/
> no file '/usr/local/
> no file '/usr/local/
> no file '/usr/local/
> no file './luarocks/
> no file '/usr/local/
> no file '/usr/local/
> no file './luarocks.so'
> no file '/usr/local/
> no file '/usr/local/
> stack traceback:
> [C]: ?
> [C]: ?
>
> Lua is searching in '/usr/local/
> luarocks is found elsewhere.
>
> [serianox@
> locate luarocks/
> /usr/share/
>
> ** Affects: luarocks (Ubuntu)
> Importance: Undecided
> Status: New
>
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org
/HGYACgkQBV7eXq efhqgYcQCfdgRyt OVcjyTfNdvdvjyd lcGZ U9TJexMtYc+ +Kz9v/
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkl
J4AAnRGo9brEzLq
=ksTe
-----END PGP SIGNATURE-----