Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

New Formula: haxe & neko #491

Closed
slaskis opened this Issue · 11 comments

3 participants

@slaskis

Updated the haxe formula now to use the main repository and added HEAD as well.

http://github.com/slaskis/homebrew/tree/f6a39af693cdf5ef1d498643d68574e72de54837

@mdornseif

For me this resulted in the following error:

rapid:local md$ cd brew --prefix
rapid:local md$ git remote add slaskis git://github.com/slaskis/homebrew.git
rapid:local md$ git pull slaskis master
remote: Counting objects: 77, done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 47 (delta 12), reused 36 (delta 8)
Unpacking objects: 100% (47/47), done.
From git://github.com/slaskis/homebrew

  • branch master -> FETCH_HEAD Merge made by recursive. Library/Formula/haxe.rb | 47 +++++++++++++++++++++++++++++++++++++ Library/Formula/neko.rb | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+), 0 deletions(-) create mode 100644 Library/Formula/haxe.rb create mode 100644 Library/Formula/neko.rb rapid:local md$ brew install haxe ... ==> make tools prefix=/usr/local/Cellar/haxe/2.0.5 ... genswf.ml main.ml Linking... Done (cd std && ../bin/haxe tools/haxedoc/haxedoc.hxml && mv haxedoc ../bin) Uncaught exception - load.c(232) : Failed to load library : std.ndll (dlopen(std.ndll, 1): image not found) Error : Neko compilation failure make: *** [tools] Error 1 http://github.com/mxcl/homebrew/blob/master/Library/Formula/haxe.rb#L42 ==> Environment HOMEBREW_VERSION: 0.5 HEAD: 24b7104c178137e74734a8aa0fc6edf1e3b79e38 HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_CACHE: /Users/md/Library/Caches/Homebrew HOMEBREW_REPOSITORY: /usr/local HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew Hardware: dual-core 64-bit penryn OS X: 10.6.2 Kernel Architecture: i386 Ruby: 1.8.7-72 GCC-4.2: build 5646 (5577 or newer recommended) LLVM: build 2206 (2206 or newer recommended) MacPorts or Fink? false X11 installed? true Exit status: 2 Error: Failure while executing: make tools prefix=/usr/local/Cellar/haxe/2.0.5 Please report this bug at http://github.com/mxcl/homebrew/issues These existing issues may help you: http://github.com/mxcl/homebrew/issues/#issue/491 http://github.com/mxcl/homebrew/issues/#issue/733
@slaskis

Strange, it looks like it skipped the dependency of neko for some reason, what if you try to install neko first and then haxe?

@mdornseif

Sorry: Probably this was output from my second run.

neko installed without any visible errors. And brew install neko worked fine. I now installed haxe as a binary port which worked fine.

@slaskis

And the neko install works for you? It looks like an environment variable might not be set properly (most likely the NEKOPATH variable) in which case neko won't work as it should, although plainly running the "neko" executable will work, as it does not seem to use any features of std.ndll.

@slaskis

I tried it out myself now and I get the same error message when I remove the NEKOPATH environment variable from my ~/.bash_profile and restart my terminal before trying to install again. It does work again when I set it back though (and restart terminal). I think I need to either update my instructions to say install neko separately and follow the caveats message before continuing or temporarily set NEKOPATH in the haxe formula. I'll give the second one a try first. Thanks for reporting!

@slaskis

I've updated my fork now with a fix to the NEKOPATH bug, if it's not too much hassle could you try and re-pull and try compiling haxe again?

This is the latest commit now regarding this formula: http://github.com/slaskis/homebrew/commit/07885a56dabecb95a465b2b941279a9ce7e480a0

@slaskis

More updates to the haxe formula. Rewrote it now to use the official dependency repositories.

http://github.com/slaskis/homebrew/commit/e8c6431ad3bd5c779a8b3684bfc48528fc1b2263

@pasviegas

slaskis, You missed this line:
system "ocaml install.ml -nodoc -d .. -n"
on ExtLibDev.

@slaskis

pasviegas, thanks! will push an updated one soon...

@slaskis

I finally have updated the haxe formula so it contains a patch for the dependencies so 2.0.5 should be working again...

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.