Download the latest stable monkey1
1) Install the xcode command line tools. You can do this by entering ‘xcode-select –install’ in a shell.2) Open a shell and change to the ‘monkey2/src’ directory.
3) Enter ‘./rebuildall.sh’ and hit return. Wait…
4) You should now be able to build and run monkey2 apps with monkey1. There is a simple ‘hello-world.monkey2’ test in the monkey2 directory.
but
“/Users/gcmartijn/Downloads/monkey2/bin/mx2cc_macos” makeapp -target=Desktop -config=Debug “/Users/gcmartijn/Downloads/monkey2-002/tests/std/random.monkey2”
MX2CC monkey2 compiler V0.001
Can’t find gcc – please install gcc tools or update your bin/env.txt file
sh: tmp.txt: Permission denied
Done.
———–
when I start command and do this: gcc -v
Configured with: –prefix=/Applications/Xcode.app/Contents/Developer/usr –with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Click on the ‘code’ link above.
]]>
https://github.com/blitz-research/monkey2/releases
Going to download this now
https://github.com/blitz-research/monkey2/archive/master.zip
maybe its better to delete that release version to keep only one download link.
]]>MX2CC monkey2 compiler V0.001
sh: tmp.txt: Permission denied
Can’t find gcc – please install gcc tools or update your bin/env.txt file
Done.
no still the same problem.
Its just to let you know about this.
***** Rebuilding modules *****
MX2CC V0.002
***** Making module ‘monkey’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/monkey/monkey.buildv002/desktop_release_macos/monkey.a
***** Making module ‘libc’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/libc/libc.buildv002/desktop_release_macos/libc.a
***** Making module ‘miniz’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/miniz/miniz.buildv002/desktop_release_macos/miniz.a
***** Making module ‘hoedown’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/hoedown/hoedown.buildv002/desktop_release_macos/hoedown.a
***** Making module ‘stb-image’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/stb-image/stb-image.buildv002/desktop_release_macos/stb-image.a
***** Making module ‘stb-truetype’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/stb-truetype/stb-truetype.buildv002/desktop_release_macos/stb-truetype.a
***** Making module ‘std’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/std/std.buildv002/desktop_release_macos/std.a
***** Making module ‘gles20’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/gles20/gles20.buildv002/desktop_release_macos/gles20.a
***** Making module ‘sdl2’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/sdl2/sdl2.buildv002/desktop_release_macos/sdl2.a
***** Making module ‘sdl2-mixer’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/sdl2-mixer/sdl2-mixer.buildv002/desktop_release_macos/sdl2-mixer.a
MX2CC V0.002
***** Making module ‘monkey’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/monkey/monkey.buildv002/desktop_debug_macos/monkey.a
***** Making module ‘libc’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/libc/libc.buildv002/desktop_debug_macos/libc.a
***** Making module ‘miniz’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/miniz/miniz.buildv002/desktop_debug_macos/miniz.a
***** Making module ‘hoedown’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/hoedown/hoedown.buildv002/desktop_debug_macos/hoedown.a
***** Making module ‘stb-image’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/stb-image/stb-image.buildv002/desktop_debug_macos/stb-image.a
***** Making module ‘stb-truetype’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/stb-truetype/stb-truetype.buildv002/desktop_debug_macos/stb-truetype.a
***** Making module ‘std’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/std/std.buildv002/desktop_debug_macos/std.a
***** Making module ‘gles20’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/gles20/gles20.buildv002/desktop_debug_macos/gles20.a
***** Making module ‘sdl2’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/sdl2/sdl2.buildv002/desktop_debug_macos/sdl2.a
***** Making module ‘sdl2-mixer’ *****
Parsing…
Semanting…
Translating…
Compiling….
Archiving /Users/gcmartijn/Downloads/monkey2-master/modules/sdl2-mixer/sdl2-mixer.buildv002/desktop_debug_macos/sdl2-mixer.a
***** Rebuilding mx2cc *****
MX2CC V0.002
***** Building app ‘/Users/gcmartijn/Downloads/monkey2-master/src/mx2new/mx2cc.monkey2’ *****
Parsing…
Semanting…
Translating…
Compiling….
Linking /Users/gcmartijn/Downloads/monkey2-master/src/mx2new/mx2cc.buildv002/desktop_release_macos/mx2cc.app/Contents/MacOS/mx2cc
MX2CC V0.002
Usage: mx2cc makeapp|makemods|makedocs [-run] [-clean] [-verbose] [-target=desktop|emscripten] [-config=debug|release] source|modules…
MX2CC V0.002
***** Doccing module ‘monkey’ *****
Parsing…
Semanting…
***** Doccing module ‘libc’ *****
Parsing…
Semanting…
***** Doccing module ‘std’ *****
Parsing…
Semanting…
gcmartijn:src gcmartijn$ “/Users/gcmartijn/Downloads/monkey2/bin/mx2cc_macos” makeapp -target=Desktop -config=Debug “/Users/gcmartijn/Downloads/monkey2-master/tests/monkey/classes.monkey2”
MX2CC monkey2 compiler V0.001
sh: tmp.txt: Permission denied
Can’t find gcc – please install gcc tools or update your bin/env.txt file
Anyway, just did a download and rebuildall.sh myself and it seemed to work.
I don’t get where this is coming from though:
> MX2CC monkey2 compiler V0.001
> sh: tmp.txt: Permission denied
> Can’t find gcc – please install gcc tools or update your bin/env.txt file
When does this appear? This is the old monkey1 version of the compiler!
If it happens when you try and compile something in ted, perhaps you have not renamed the new monkey2 folder to ‘monkey2’. It looks like Ted might still be used the old monkey2 folder.
Ted only looks for ../monkey2/, so you’ll need to rename new version to ‘monkey2’ each update (sorry).
Another thing to try after rebuildall.sh is:
../bin/mx2cc_macos makeapp ../hello-world.monkey2
]]>
now its working oke.
I see that TED2 is not alive anymore in this release, you can’t do everything once 🙂
]]>