Closed azokal closed 9 years ago
Try to run it with -d parameter: non -d hello moon
. It will hopefully give us some more imformation about the issue. And also, that version you are using is really outdated, try to install latest development version: https://github.com/nondev/non/wiki/Working-from-source.
With the -d argument, the output remains the same. Ok, I will try from source.
After updating:
azokal@maxime-laptop:~/Project/non$ non -d hello moon
Generating Hello World! project
Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':android'.
> Could not resolve all dependencies for configuration ':android:_debugCompile'.
> Could not resolve io.nononsense:core:v0.7.0.
Required by:
.non:android:1.0.0
> No cached version of io.nononsense:core:v0.7.0 available for offline mode.
> No cached version of io.nononsense:core:v0.7.0 available for offline mode.
> No cached version of io.nononsense:core:v0.7.0 available for offline mode.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
.
Task finished with non-zero result
BUILD FAILED
Total time: 12 seconds
Try to remove non and reinstall it with thos command -
luarocks install http://luarocks.org/manifests/deathbeam/non-dev-1.rockspec
I do not really know why core dependency was not installed during process, but try it again and it should work.
Still have the same issue.
And do you tried it installing as root? With sudo?
I installed it with sudo.
If you can, can you show me output to console of installation process?
Of course:
azokal@maxime-laptop:~/Project/non$ sudo luarocks install http://luarocks.org/manifests/deathbeam/non-dev-1.rockspec
[sudo] password for azokal:
Using http://luarocks.org/manifests/deathbeam/non-dev-1.rockspec... switching to 'build' mode
Cloning into 'non'...
remote: Counting objects: 361, done.
remote: Compressing objects: 100% (254/254), done.
remote: Total 361 (delta 93), reused 315 (delta 87), pack-reused 0
Receiving objects: 100% (361/361), 568.18 KiB | 217.00 KiB/s, done.
Resolving deltas: 100% (93/93), done.
Checking connectivity... done.
sh install
added manifest
adding: Runner$OutputListener.class(in = 208) (out= 162)(deflated 22%)
adding: Gradle.java(in = 3635) (out= 1020)(deflated 71%)
adding: FileUtils.class(in = 2640) (out= 1456)(deflated 44%)
adding: FileUtils.java(in = 2255) (out= 741)(deflated 67%)
adding: Runner.java(in = 2258) (out= 661)(deflated 70%)
adding: Runner.class(in = 2324) (out= 1314)(deflated 43%)
adding: ZipUtils.java(in = 1345) (out= 509)(deflated 62%)
adding: Gradle.class(in = 2579) (out= 1376)(deflated 46%)
adding: Main.java(in = 5587) (out= 1344)(deflated 75%)
adding: Gradle$1.class(in = 1991) (out= 1206)(deflated 39%)
adding: ZipUtils.class(in = 1930) (out= 1036)(deflated 46%)
adding: Main.class(in = 5394) (out= 2816)(deflated 47%)
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources UP-TO-DATE
:classes
:jar
:signArchives SKIPPED
:install
BUILD SUCCESSFUL
Total time: 22.497 secs
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources UP-TO-DATE
:classes
:jar
:signArchives SKIPPED
:install
BUILD SUCCESSFUL
Total time: 12.428 secs
Updating manifest for /usr/local/lib/luarocks/rocks
non dev-1 is now built and installed in /usr/local/ (license: MIT)
Oh yea yea. I am really sorry. When you installed it as root, you must also run it as root. So just do sudo non hello moon
.
It's working now thanks.
No problem, closing this issue.
Hi, I'm wanting to try non but after install when i try to generate example project, non return to me this:
I'm using ubuntu 14.10. non version: 0.6.4. I install it with:
luarocks install non
. I'm using Oracle JVM 1.7.0_80.Who can i make it work ?