Wrong target dir

Bug #319646 reported by Thomas Duboucher
2
Affects Status Importance Assigned to Milestone
luarocks (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: luarocks

[serianox@Small-Drake]:~$
 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@Small-Drake]:~
 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://fr.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status
[serianox@Small-Drake]:~$
 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://fr.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

Then loading luarocks within the command-line tool.

[serianox@Small-Drake]:~$
 lua -lluarocks.require
lua: module 'luarocks.require' not found:
        no field package.preload['luarocks.require']
        no file './luarocks/require.lua'
        no file '/usr/local/share/lua/5.1/luarocks/require.lua'
        no file '/usr/local/share/lua/5.1/luarocks/require/init.lua'
        no file '/usr/local/lib/lua/5.1/luarocks/require.lua'
        no file '/usr/local/lib/lua/5.1/luarocks/require/init.lua'
        no file './luarocks/require.so'
        no file '/usr/local/lib/lua/5.1/luarocks/require.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './luarocks.so'
        no file '/usr/local/lib/lua/5.1/luarocks.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: ?
        [C]: ?

Lua is searching in '/usr/local/share/lua/5.1/luarocks/require.lua', but luarocks is found elsewhere.

[serianox@Small-Drake]:~$
 locate luarocks/require.lua
/usr/share/lua/5.1/luarocks/require.lua

Revision history for this message
Thomas Duboucher (serianox) wrote : Re: [Bug 319646] [NEW] Wrong target dir

-----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 :
> Public bug reported:
>
> Binary package hint: luarocks
>
>
> [serianox@Small-Drake]:~$
> 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@Small-Drake]:~
> 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://fr.archive.ubuntu.com intrepid/universe Packages
> 100 /var/lib/dpkg/status
> [serianox@Small-Drake]:~$
> 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://fr.archive.ubuntu.com intrepid/universe Packages
> 100 /var/lib/dpkg/status
>
> Then loading luarocks within the command-line tool.
>
> [serianox@Small-Drake]:~$
> lua -lluarocks.require
> lua: module 'luarocks.require' not found:
> no field package.preload['luarocks.require']
> no file './luarocks/require.lua'
> no file '/usr/local/share/lua/5.1/luarocks/require.lua'
> no file '/usr/local/share/lua/5.1/luarocks/require/init.lua'
> no file '/usr/local/lib/lua/5.1/luarocks/require.lua'
> no file '/usr/local/lib/lua/5.1/luarocks/require/init.lua'
> no file './luarocks/require.so'
> no file '/usr/local/lib/lua/5.1/luarocks/require.so'
> no file '/usr/local/lib/lua/5.1/loadall.so'
> no file './luarocks.so'
> no file '/usr/local/lib/lua/5.1/luarocks.so'
> no file '/usr/local/lib/lua/5.1/loadall.so'
> stack traceback:
> [C]: ?
> [C]: ?
>
> Lua is searching in '/usr/local/share/lua/5.1/luarocks/require.lua', but
> luarocks is found elsewhere.
>
> [serianox@Small-Drake]:~$
> locate luarocks/require.lua
> /usr/share/lua/5.1/luarocks/require.lua
>
> ** Affects: luarocks (Ubuntu)
> Importance: Undecided
> Status: New
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl/HGYACgkQBV7eXqefhqgYcQCfdgRytOVcjyTfNdvdvjydlcGZ
J4AAnRGo9brEzLqU9TJexMtYc++Kz9v/
=ksTe
-----END PGP SIGNATURE-----

Revision history for this message
Artur Rona (ari-tczew) wrote :

luarocks (1.0.1-1) unstable; urgency=low

  * new upstream release
  * added misc:Depends to Depends:
  * bumped standards-version to 3.8.1, no changes needed
  * added dependency over zip package (Closes: #497830)

luarocks (1.0-2) unstable; urgency=low

  * upload to unstable

luarocks (1.0-1) experimental; urgency=low

  * New upstream release
  * Bumped Standards-Version to 3.8.0, no changes needed

 -- Ubuntu Archive Auto-Sync < <email address hidden>> Wed, 29 Apr 2009 12:03:23 +0100

Changed in luarocks (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.