About Monkey 2 › Forums › Monkey 2 Programming Help › OSX monkey2 Can’t find gcc
This topic contains 5 replies, has 2 voices, and was last updated by
gcmartijn 3 years ago.
-
AuthorPosts
-
April 2, 2016 at 1:52 pm #658
It has been a while ago that I installed the latest version so this is what I did.
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
- there is not a hello-world.monkey2 (but that’s not a problem, but than you know that)
- I get this error
“/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/binApril 2, 2016 at 7:28 pm #660This looks like an old-ish version – have you tried the latest from github?
Click on the ‘code’ link above.
April 2, 2016 at 7:48 pm #661I thought everyone uses a release, found here:
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.
April 2, 2016 at 7:56 pm #662“/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
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 fileApril 2, 2016 at 8:12 pm #664Cool, didn’t realize tagging things in github created a release!
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 fileWhen 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
April 3, 2016 at 10:36 am #684Ah I see now, I had many files inside a directory and din’t see that there was already a monkey2 (very old one)
now its working oke.
I see that TED2 is not alive anymore in this release, you can’t do everything once
-
AuthorPosts
You must be logged in to reply to this topic.