LuaDist / Repository

Repository of LuaDist modules available for installation using the luadist-git command line tool
www.luadist.org
243 stars 41 forks source link

Dependency errors: Package 'lua ~>5.1' needed, but installed at version '5.2.3' #217

Closed n3y closed 9 years ago

n3y commented 9 years ago

Hello. Being a newbie to LuaDist, I've installed it on Windows 10 64-bit according to the "LuaDist: Installation" wiki . Base system built OK, but I get dependency errors when trying to install "batteries" dist, and also e.g. "bitlib", "cd", "wxlua" or "zerobranestudio". Some dists install fine, e.g. "luaexpat" or "pcre". Could you please advise how can I get to installing "batteries" in this situation - and could you perhaps document briefly special cases like this on the wiki, too?

C:\Users\me\_bootstrap> move _install ..\lua
C:\Users\me\_bootstrap> cd  ..\lua

C:\Users\me\lua\bin> luadist C:\Users\me\lua install batteries -verbose
Finding out available versions of batteries...
Getting batteries-0.9.8 (source)...
 - trying another candidate due to: Error getting dependency of 'batteries-0.9.8': Package 'lua ~>5.1' needed, but installed at version '5.2.3'.
Getting batteries-0.9.7 (source)...
 - trying another candidate due to: Error getting dependency of 'batteries-0.9.7': Package 'lua ~>5.1' needed, but installed at version '5.2.3'.
Getting batteries-0.9.6 (source)...
 - trying another candidate due to: Error getting dependency of 'batteries-0.9.6': Package 'lua ~>5.1' needed, but installed at version '5.2.3'.
Getting batteries-0.9.5 (source)...
 - trying another candidate due to: Error getting dependency of 'batteries-0.9.5': Package 'lua ~>5.1' needed, but installed at version '5.2.3'.
Getting batteries-0.9.2 (source)...
Finding out available versions of slnunicode...
Getting slnunicode-1.1a (source)...
 - trying another candidate due to: Error getting dependency of 'slnunicode-1.1a': Package 'lua ~>5.1' needed, but installed at version '5.2.3'.
Getting slnunicode-1.1 (source)...
 - trying another candidate due to: Error getting dependency of 'batteries-0.9.2': Error getting dependency of 'slnunicode-1.1': Package 'lua ~>5.1' needed, but installed at version '5.2.3'.
Getting batteries-0.9.1 (source)...
Finding out available versions of luaex...
Getting luaex-20091019 (source)...
 - trying another candidate due to: Error getting dependency of 'batteries-0.9.1': Error getting dependency of 'luaex-20091019': Package 'lua ~>5.1' needed, but installed at version '5.2.3'.
Getting batteries-scm (source)...
Cannot install package 'batteries': Error getting dependency of 'batteries-0.9.8': Package 'lua ~>5.1' needed, but installed at version '5.2.3'.
drahosp commented 9 years ago

Hello, currently the luadist package bootstraps at lua version 5.2.3 as the error says. However the batteries package expects lua 5.1.X to be present. Your C:\Users\me\lua path therefore contains lua-5.2.3 which is in confict with the batteries package dependencies.

In LuaDist you can install modules and lua into separate directories (called deployments), these are separate directories each containing its own set of modules and dependencies. All you need to do is to specify a different empty destination. For example running the following install should pull in lua-5.1.5.

C:\Users\me\lua\bin> luadist C:\Users\me\lua-batteries install batteries -verbose