Quantcast

non-admin installation of haxe for osx

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

non-admin installation of haxe for osx

davidedc
Hi,

has anyone managed to install haxe and neko and nekonme in OSX without requiring admin superpowers?

It looks to me like the only two reasons why admin powers are required is that

a) some environment variables are set
b) some subdirectories are created under /usr/ (and referenced by haxelib)


a) can be worked around by using export - although the changes are only local to the current terminal session, which would be fine
b) ???

Anyone tried this?

Cheers,
Davide 

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: non-admin installation of haxe for osx

Cauê W.
Davide, you should be able to install haXe wherever you like. Maybe not using the installer, but just by copying the files to the chosen directory. Then you'd have to the vars up, and with haxelib you can call "haxelib setup" and choose the directory where it will be installed!

Cheers
Caue

2011/7/5 Davide Della Casa <[hidden email]>
Hi,

has anyone managed to install haxe and neko and nekonme in OSX without requiring admin superpowers?

It looks to me like the only two reasons why admin powers are required is that

a) some environment variables are set
b) some subdirectories are created under /usr/ (and referenced by haxelib)


a) can be worked around by using export - although the changes are only local to the current terminal session, which would be fine
b) ???

Anyone tried this?

Cheers,
Davide 

--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: non-admin installation of haxe for osx

Quickform | Marcus Bergstrom
Davide,

If you are gonna setup haxe and neko on your osx machine, I seriously recommend setting it up using GIT so that you can have a branch per each haxe version. I've got a branch for every version since Haxe.1.13. It's quite helpful.

I've got all files located here:
/Users/mb/HaxeNeko (mb is my user folder)
Looks like this:
drwxr-xr-x  16 mb  staff     544 Jul  5 11:34 .git
-rw-r--r--   1 mb  staff      42 Jul  4 13:54 config
drwxr-xr-x  11 mb  staff     374 Jul  5 11:34 haxe
drwxr-xr-x  15 mb  staff     510 Jul  5 11:34 haxelib
drwxr-xr-x  20 mb  staff     680 Jul  5 11:34 neko
-rwxr-xr-x   1 mb  staff  135838 Jul  4 13:54 temploc
-rwxr-xr-x   1 mb  staff  280782 Jul  5 11:34 temploc2

Because I use git, I have these branches, so that I can switch quickly depending on project:
  Haxe_1.13_Neko_1.5.3
  Haxe_1.15_Neko_1.6
  Haxe_1.17_Neko_1.6
  Haxe_1.19_Neko_1.7
  Haxe_1.19_Neko_1.8
  Haxe_2.02_Neko_1.7
  Haxe_2.04_Neko_1.8
  Haxe_2.06_Neko_1.8.1
* Haxe_2.07_Neko_1.8.1

For neko I have some symlinks to this folder from /usr/lib

I have this setup in ~/.bash_profile:
echo "Welcome Marcus, Environment Initialized. (Haxe/Neko/ImageMagick)"
export NEKOPATH=/Users/mb/HaxeNeko/neko
export LD_LIBRARY_PATH=/Users/mb/HaxeNeko/neko
export HAXE_LIBRARY_PATH=/Users/mb/HaxeNeko/haxe/std
export PATH=/usr/local/bin:/usr/local/lib:/Users/mb/HaxeNeko:/Users/mb/HaxeNeko/haxe:/Users/mb/HaxeNeko/neko:$PATH
export MAGICK_HOME="/usr/local/imagemagick"
export PATH=$MAGICK_HOME/bin:$PATH

Hopefully, that will be of some help.
I recommend everyone to have a similar setup, it's been extremely helpful when working on projects throughout these years.
Some projects date back to 2006 and 2007. I've used haxe for 80% of our company work since then.
If you have any questions, I'll be happy to help.

Regards,

Marcus Bergstrom



On Jul 5, 2011, at 10:39 PM, Cauê Waneck wrote:

Davide, you should be able to install haXe wherever you like. Maybe not using the installer, but just by copying the files to the chosen directory. Then you'd have to the vars up, and with haxelib you can call "haxelib setup" and choose the directory where it will be installed!

Cheers
Caue

2011/7/5 Davide Della Casa <[hidden email]>
Hi,

has anyone managed to install haxe and neko and nekonme in OSX without requiring admin superpowers?

It looks to me like the only two reasons why admin powers are required is that

a) some environment variables are set
b) some subdirectories are created under /usr/ (and referenced by haxelib)


a) can be worked around by using export - although the changes are only local to the current terminal session, which would be fine
b) ???

Anyone tried this?

Cheers,
Davide 

--
haXe - an open source web programming language
http://haxe.org

--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: non-admin installation of haxe for osx

davidedc
In reply to this post by Cauê W.
Thanks Caue,

I gave it some command line hell.

This sequence below seems to work, brings from clean-slate OSX to working neko example, requires no admin privileges.

Cheers,
Davide

################################
cd ~/Downloads
tar -zxvf neko.tgz
tar -zxvf haxe.tgz
export HAXEPATH=/Users/userName/Downloads/haxe-2.07-osx/
export NEKOPATH=/Users/userName/Downloads/neko-1.8.1-osx/
export PATH=$HAXEPATH:$NEKOPATH:$PATH
export HAXE_HOME=/Users/userName/Downloads/haxe-2.07-osx/:.
export NEKOPATH=/Users/userName/Downloads/neko-1.8.1-osx/:.
export DYLD_LIBRARY_PATH=/Users/userName/Downloads/neko-1.8.1-osx/
haxelib setup .
haxelib install hxcpp
haxelib install nme
export HXCPP=/Users/userName/Downloads/hxcpp/:.
export HAXE_LIBRARY_PATH=/Users/userName/Downloads/haxe-2.07-osx/std/
export HAXE_LIBRARY_PATH=/Users/userName/Downloads/hxcpp/2,07,0/bin/userName/:$HAXE_LIBRARY_PATH
export LD_LIBRARY_PATH=/Users/userName/Downloads/hxcpp/2,07,0/bin/userName/
export LD_LIBRARY_PATH=/Users/userName/Downloads/nme/2,0,1/ndll/userName/:$LD_LIBRARY_PATH
## and now some testing
cd nme/2,0,1/samples/
cd 02-Text
haxe compile.hxml
neko Sample.n
########################################


On Tue, Jul 5, 2011 at 10:39 PM, Cauê Waneck <[hidden email]> wrote:
Davide, you should be able to install haXe wherever you like. Maybe not using the installer, but just by copying the files to the chosen directory. Then you'd have to the vars up, and with haxelib you can call "haxelib setup" and choose the directory where it will be installed!

Cheers
Caue

2011/7/5 Davide Della Casa <[hidden email]>
Hi,

has anyone managed to install haxe and neko and nekonme in OSX without requiring admin superpowers?

It looks to me like the only two reasons why admin powers are required is that

a) some environment variables are set
b) some subdirectories are created under /usr/ (and referenced by haxelib)


a) can be worked around by using export - although the changes are only local to the current terminal session, which would be fine
b) ???

Anyone tried this?

Cheers,
Davide 

--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: non-admin installation of haxe for osx

davidedc
In reply to this post by Quickform | Marcus Bergstrom
Thanks fore the tip Marcus.

In this case I was looking after a minimal install sequence, since I want to use haxe as an alternative compiler/runtime for Processing, so I'd like the haxe install to be as invisible as possible.

Cheers,
Davide

On Wed, Jul 6, 2011 at 12:12 AM, Quickform | Marcus Bergstrom <[hidden email]> wrote:
Davide,

If you are gonna setup haxe and neko on your osx machine, I seriously recommend setting it up using GIT so that you can have a branch per each haxe version. I've got a branch for every version since Haxe.1.13. It's quite helpful.


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: non-admin installation of haxe for osx

davidedc
In reply to this post by davidedc
Made version 2.

It's cleaned up now and it also runs hxcpp (i.e. it generates the .cpp files for the test). Note that in raw OSX there is no XCode/gcc installed, so the build part of hxcpp fails.

I'm reading whether it's possible to get gcc+headers without installing xcode - looks tough but that would be cool. Any advice welcome.

Cheers,
D

#########################
cd ~/Downloads
tar -zxvf neko.tgz
tar -zxvf haxe.tgz
rm haxe.tgz neko.tgz
export HAXEPATH=$HOME/Downloads/haxe-2.07-osx/
export NEKOPATH=$HOME/Downloads/neko-1.8.1-osx/
export PATH=$HAXEPATH:$NEKOPATH:$PATH
export DYLD_LIBRARY_PATH=$HOME/Downloads/neko-1.8.1-osx/
haxelib setup $HOME/Downloads/
haxelib install hxcpp
haxelib install nme
export HXCPP=$HOME/Downloads/hxcpp/
export HAXE_LIBRARY_PATH=$HOME/Downloads/haxe-2.07-osx/std/
export LD_LIBRARY_PATH=$HOME/Downloads/hxcpp/2,07,0/bin/Mac/
export LD_LIBRARY_PATH=$HOME/Downloads/nme/2,0,1/ndll/Mac/:$LD_LIBRARY_PATH
## and now some testing
cd nme/2,0,1/samples/02-Text
haxe compile.hxml
neko Sample.n
haxe -main Sample -cpp bin -lib nme
######################

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: non-admin installation of haxe for osx

Andy Li
Interesting, maybe you can paste that to gist.github.com or the haxe wiki for ppl to keep track.

cheers,
Andy

On Wed, Jul 6, 2011 at 8:33 PM, Davide Della Casa <[hidden email]> wrote:
Made version 2.

It's cleaned up now and it also runs hxcpp (i.e. it generates the .cpp files for the test). Note that in raw OSX there is no XCode/gcc installed, so the build part of hxcpp fails.

I'm reading whether it's possible to get gcc+headers without installing xcode - looks tough but that would be cool. Any advice welcome.

Cheers,
D

#########################
cd ~/Downloads
tar -zxvf neko.tgz
tar -zxvf haxe.tgz
rm haxe.tgz neko.tgz
export HAXEPATH=$HOME/Downloads/haxe-2.07-osx/
export NEKOPATH=$HOME/Downloads/neko-1.8.1-osx/
export PATH=$HAXEPATH:$NEKOPATH:$PATH
export DYLD_LIBRARY_PATH=$HOME/Downloads/neko-1.8.1-osx/
haxelib setup $HOME/Downloads/
haxelib install hxcpp
haxelib install nme
export HXCPP=$HOME/Downloads/hxcpp/
export HAXE_LIBRARY_PATH=$HOME/Downloads/haxe-2.07-osx/std/
export LD_LIBRARY_PATH=$HOME/Downloads/hxcpp/2,07,0/bin/Mac/
export LD_LIBRARY_PATH=$HOME/Downloads/nme/2,0,1/ndll/Mac/:$LD_LIBRARY_PATH
## and now some testing
cd nme/2,0,1/samples/02-Text
haxe compile.hxml
neko Sample.n
haxe -main Sample -cpp bin -lib nme
######################

--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: non-admin installation of haxe for osx

davidedc
Fair enough. I've put it here:

Cheers,
Davide

On Wed, Jul 6, 2011 at 3:46 PM, Andy Li <[hidden email]> wrote:
Interesting, maybe you can paste that to gist.github.com or the haxe wiki for ppl to keep track.

cheers,
Andy

--
haXe - an open source web programming language
http://haxe.org
Loading...