lubyk / dub

A Lua bindings generator that uses Doxygen to parse C/C++ headers.
doc.lubyk.org/dub.html
Other
82 stars 34 forks source link

Problems installing dub via luarocks #5

Closed notlion closed 10 years ago

notlion commented 10 years ago

I tried to luarocks install dub as suggested in the docs, but it's not found:

Error: No results matching query were found.

Then, when installing from a local copy with luarocks make, it looks like the correct version of yaml is not available:

Error: Could not satisfy dependency: yaml ~> 1.0

If I remove the version requirements from the .rockspec dub will install, but then when running a script with require 'lub', it cannot find the lub.plat module:

/usr/local/share/lua/5.1/lub/Autoload.lua:28: module 'lub.plat' not found:
    no field package.preload['lub.plat']
    no file './lub/plat.lua'
    no file '/usr/local/share/lua/5.1/lub/plat.lua'
    no file '/usr/local/share/lua/5.1/lub/plat/init.lua'
    no file '/usr/local/lib/lua/5.1/lub/plat.lua'
    no file '/usr/local/lib/lua/5.1/lub/plat/init.lua'
    no file './lub/plat.so'
    no file '/usr/local/lib/lua/5.1/lub/plat.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
    no file './lub.so'
    no file '/usr/local/lib/lua/5.1/lub.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
gaspard commented 10 years ago

Hi,

I will push yaml rock to luarocks and lub 1.0.4 as soon as possible and then release dub.

You can install them by hand for now:

http://github.com/lubyk/yaml http://github.com/lubyk/lub

Sorry for the error in the rockspec for dub.

notlion commented 10 years ago

Aha! Thanks. I didn't realize dub wasn't released yet :)

gaspard commented 10 years ago

I moved forward and released yaml and lub (waiting approval). Once these required libs are in luarocks I will finally release "dub" (it's been a long long time since I want "dub" to be released and it required a lot of cleanup work for the library to be light in terms of dependencies).

Cheers.