Monkey 2OSX monkey2 Can’t find gcc – Monkey 2 http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/feed/ Fri, 19 Apr 2019 18:34:47 +0000 http://bbpress.org/?v=2.5.14-6684 en-US http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-658 <![CDATA[OSX monkey2 Can’t find gcc]]> http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-658 Sat, 02 Apr 2016 13:52:23 +0000 gcmartijn 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

  1. there is not a hello-world.monkey2 (but that’s not a problem, but than you know that)
  2. 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/bin

]]>
http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-660 <![CDATA[Reply To: OSX monkey2 Can’t find gcc]]> http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-660 Sat, 02 Apr 2016 19:28:37 +0000 Mark Sibly This looks like an old-ish version – have you tried the latest from github?

Click on the ‘code’ link above.

 

 

]]>
http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-661 <![CDATA[Reply To: OSX monkey2 Can’t find gcc]]> http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-661 Sat, 02 Apr 2016 19:48:07 +0000 gcmartijn I 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.

]]>
http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-662 <![CDATA[Reply To: OSX monkey2 Can’t find gcc]]> http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-662 Sat, 02 Apr 2016 19:56:12 +0000 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

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

]]>
http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-664 <![CDATA[Reply To: OSX monkey2 Can’t find gcc]]> http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-664 Sat, 02 Apr 2016 20:12:38 +0000 Mark Sibly Cool, 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 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

 

 

 

 

]]>
http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-684 <![CDATA[Reply To: OSX monkey2 Can’t find gcc]]> http://monkeycoder.co.nz/forums/topic/osx-monkey2-cant-find-gcc/#post-684 Sun, 03 Apr 2016 10:36:13 +0000 gcmartijn Ah 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 🙂

]]>