Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.2.1 Mac OSX installer doesn't install binaries to /usr/local/bin/ on latest El Capitan update #4585

Closed
jangdan opened this issue Oct 12, 2015 · 18 comments

Comments

@jangdan
Copy link

jangdan commented Oct 12, 2015

Perhaps a continuation of #4483

I've tried the new update and the installer. It worked, installing on usr/local/ instead of usr/

However, I still couldn't run the haxe and haxelib commands on terminal, and I found out that the installer didn't add anything to /usr/local/bin/.
I'm new to linux and stuff, so I might've missed something, but if thats not the case:

screen shot 2015-10-12 at 10 13 21 pm

/usr/local/right after installation
screen shot 2015-10-12 at 10 12 41 pm

@jangdan jangdan mentioned this issue Oct 12, 2015
@waneck
Copy link
Member

waneck commented Oct 12, 2015

I will look into it tonight. Thanks for testing!

On Mon, Oct 12, 2015, 9:26 AM jangdan notifications@github.com wrote:

Perhaps a continuation of #4483
#4483

I've tried the new update and the installer. It worked, installing on
usr/local/ instead of usr/

However, I still couldn't run the haxe and haxelib commands on terminal,
and I found out that the installer didn't add anything to /usr/local/bin/.
I'm new to linux and stuff, so I might've missed something, but if thats
not the case:

[image: screen shot 2015-10-12 at 10 13 21 pm]
https://cloud.githubusercontent.com/assets/1841652/10428906/9385c148-712f-11e5-911b-d2de26e74a50.png

/usr/local/right after installation
[image: screen shot 2015-10-12 at 10 12 41 pm]
https://cloud.githubusercontent.com/assets/1841652/10428727/65f5e74a-712e-11e5-83e0-6f25a28e086a.png


Reply to this email directly or view it on GitHub
#4585.

@waneck
Copy link
Member

waneck commented Oct 12, 2015

Can you please run ls -al /usr/local/bin/haxe ?

On Mon, Oct 12, 2015, 9:28 AM Cauê Waneck waneck@gmail.com wrote:

I will look into it tonight. Thanks for testing!

On Mon, Oct 12, 2015, 9:26 AM jangdan notifications@github.com wrote:

Perhaps a continuation of #4483
#4483

I've tried the new update and the installer. It worked, installing on
usr/local/ instead of usr/

However, I still couldn't run the haxe and haxelib commands on terminal,
and I found out that the installer didn't add anything to /usr/local/bin/.
I'm new to linux and stuff, so I might've missed something, but if thats
not the case:

[image: screen shot 2015-10-12 at 10 13 21 pm]
https://cloud.githubusercontent.com/assets/1841652/10428906/9385c148-712f-11e5-911b-d2de26e74a50.png

/usr/local/right after installation
[image: screen shot 2015-10-12 at 10 12 41 pm]
https://cloud.githubusercontent.com/assets/1841652/10428727/65f5e74a-712e-11e5-83e0-6f25a28e086a.png


Reply to this email directly or view it on GitHub
#4585.

@jangdan
Copy link
Author

jangdan commented Oct 12, 2015

screen shot 2015-10-12 at 10 31 36 pm

its just .... not.... there...........

@waneck
Copy link
Member

waneck commented Oct 12, 2015

That's weird!
Okay, I'll have a look tonight!

@jangdan
Copy link
Author

jangdan commented Oct 12, 2015

I did some hacking hehe

Looking inside the .pkg, inside the scripts.tar.gz, I found install.sh, of which I'd never know if you guys are writing that shell or if an installer creator packaging program is doing that, but
screen shot 2015-10-12 at 10 41 24 pm

there is no cp command directed to usr/local/bin, so maybe that could be the problem.

I hope this helps in any way! The problem feels simple.

@waneck
Copy link
Member

waneck commented Oct 12, 2015

You're on the right track ;) I'll have a look! Thanks! If you found the
issue, you can submit a PR to
https://github.com/waneck/hxbuilds/tree/master/projects/haxe/platforms/mac-clang-installer-linux/scripts

Strange thing that it was reportedly working before, and I didn't make any
changes afterwards. Oh well, go figure!

2015-10-12 9:47 GMT-04:00 jangdan notifications@github.com:

I did some hacking hehe

Looking inside the .pkg, inside the scripts.tar.gz, I found install.sh,
of which I'd never know if you guys are writing that shell or if an
installer creator packaging program is doing that, but
[image: screen shot 2015-10-12 at 10 41 24 pm]
https://cloud.githubusercontent.com/assets/1841652/10429330/a302a2be-7132-11e5-86e4-83933a916970.png

there is no cp command directed to usr/local/bin, so maybe that could be
the problem.

I hope this helps in any way! The problem feels simple.


Reply to this email directly or view it on GitHub
#4585 (comment)
.

@waneck
Copy link
Member

waneck commented Oct 12, 2015

Okay, I think I know what's up
Looking at https://github.com/waneck/hxbuilds/blob/master/projects/haxe/platforms/mac-clang-installer-linux/scripts/haxe-postinstall.sh#L10 , we indeed add a link; However we don't try to create /usr/local/bin if it doesn't exist (which is your case), so the script fails silently

@waneck
Copy link
Member

waneck commented Oct 13, 2015

@jangdan , I've updated the binaries. It will take a couple of minutes for the binaries to be updated on the Haxe website, but you can get it from http://hxbuilds.s3-website-us-east-1.amazonaws.com/builds/haxe/mac-installer/haxe_2015-10-13_master_deab442.tar.gz . Please let me know if this solves it for you

@jangdan
Copy link
Author

jangdan commented Oct 13, 2015

both haxe and haxelib work nicely, although I haven't tried compiling anything. Compile problems should be on another thread, so if I encounter one, i'll be quick to notify you on another 'Issue'.

Screenshot of /usr/local/bin/ fyi:

screen shot 2015-10-13 at 4 31 54 pm

So I guess the case is closed!

@jangdan
Copy link
Author

jangdan commented Oct 13, 2015

@waneck

A little error while running haxelib setup:

screen shot 2015-10-13 at 5 00 46 pm

/usr/lib/ is unwritable.
default directory should be updated to /usr/local/lib !

@waneck
Copy link
Member

waneck commented Oct 13, 2015

Great. As for the haxelib setup path, can you add this as an issue on haxelib? We'll probably leave it to fix on the next version.

@waneck waneck closed this as completed Oct 13, 2015
@lewislepton
Copy link

dont mean to reopen this. but just wanted to ask this question:
would the new update fix the install path, so it goes to the right path? so it ends up in /usr/lib/?

im staying away from el capitan for this because of the problem in the install. the 3.2.1 does install well, but doing all the other things is bad

thanks for the work on this

@waneck
Copy link
Member

waneck commented Oct 13, 2015

yes it's now installing on /usr/local

@lewislepton
Copy link

ok cool. what about the location of using haxelib etc. im sure i saw someone having trouble doing install and even running the code from sublime because it could not find haxelib

@jangdan
Copy link
Author

jangdan commented Oct 14, 2015

@waneck okay i'll just copy and paste my comment from here and add a new issue.

@jangdan
Copy link
Author

jangdan commented Oct 14, 2015

@lewislepton everything (well, 'everything' for me is haxe, openfl, building to neko and flash, with sublime text) is working fine for me. i assume all the directory calls in haxelib are relative (how nice!). no problems.

@lewislepton
Copy link

@jangdan ok. fair enough. i use openfl, sublime. thats really about it. well as long as its ok. i just went ahead and installed capitan anyhow. may as well, one way or the other it will be fixed

@stevecochrane
Copy link

Just wanted to say that as a Mac user who is just now starting to learn Haxe, seeing this fixed so openly and quickly is really encouraging. Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants