Latest Changes

Differences between version #15206 and #15309

10c10
< Make sure to uninstall previous versions of Haxe installed via .deb packages or manually.
---
> Make sure to uninstall existing versions of Haxe which you may have previously installed via .deb packages or manually.
21,29c21
< You can use the following shell script for the complete build and install process. 
< 
< 1. copy the contents of the **installation script** into a shell script, like "installhaxe.sh"
< <code>vim installhaxe.sh</code>
< 2. make it executable:
< <code>sudo chmod 0755 installhaxe.sh</code>
< 3. run it: 
< <code>./installhaxe.sh</code>
< 
---
> You can use the following shell script which handles the complete process. It will download the haxe source, build haxe and install it.
62c54
< sudo grep "HAXE_LIBRARY_PATH" /etc/environment || echo "export HAXE_LIBRARY_PATH=/usr/local/haxe/std:." >> /etc/environment
---
> grep "HAXE_LIBRARY_PATH" /etc/environment || echo "export HAXE_LIBRARY_PATH=/usr/local/haxe/std:." | sudo tee -a /etc/environment
65a58,64
> 1. copy the contents of the **installation script** into a shell script, like //installhaxe.sh//
> <code>vim installhaxe.sh</code>
> 2. make it executable:
> <code>sudo chmod 0755 installhaxe.sh</code>
> 3. run it: 
> <code>./installhaxe.sh</code>
> 
68c67
< The following two variables should be defined in your //~/.bashrc// file:
---
> The following two variables should be defined in the //etc/profile// file:
71c70
< Please make sure that the haxe compiler finds its libraries by correctly setting up the environment variable  in your ~/.bashrc. 
---
> Please make sure that the haxe compiler finds its libraries (the std folder) by correctly setting this environment variable.
77c76
< # somewhere in your ~/.bashrc
---
> # in /etc/profile
82d80
< 
85,87d82
< To initialize the variables you have to call your ~/.basrc file:
< <code>source ~/.bashrc</code>
< 
92,93c87,88
< File Test.hx
< <code> 
---
> File //Test.hx// :
> <code haxe> 
101c96
< File compile.hxml:
---
> File //compile.hxml// :
107c102
< Compile it:
---
> Run from command line:
111,112c106,108
< And here the html code for calling the Javascript:
< <code>  
---
> File //index.html// :
> Html code for testing the JavaScript:
> <code html>  
114,119c110,116
< <head><title>Haxe JS</title></head>
< <body>
< <div id="haxe:trace"></div>
< <script type="text/javascript" src="test.js"></script>
< 
< </body>
---
> 	<head>
> 		<title>Haxe JS</title>
> 	</head>
> 	<body>
> 		<div id="haxe:trace"></div>
> 		<script type="text/javascript" src="test.js"></script>
> 	</body>
121,146c118
< </code>
< 
< ===== Troubleshooting =====
< 
< From the step:
< 
<    Compile it:
<    <code> haxe compile.hxml </code>
< 
< In case you get the following error:
< ''Class not found : Test'' 
< 
< make sure that your environment variables are correct:
< <code>echo $HAXE_LIBRARY_PATH</code>
< You should get something like
< ''/usr/local/haxe/std:.''
< 
< then check if the files are there
< <code>
< $ ls /usr/local/haxe/std/
<  Enum.hx  flash9   IntHash.hx  Lambda.hx ...
< </code>
< 
< 
< 
< 
---
> </code>
\ No newline at end of file

	
Ver Date Entry Lg User Action
#19365 2013-05-23 18:46:47 ref/enums jp shohei909 View | Diff
#19364 2013-05-19 18:01:37 manual/haxe3 en orwellophile View | Diff
#19363 2013-05-19 17:58:20 manual/haxe3 en orwellophile View | Diff
#19362 2013-05-19 16:16:17 api/haxe/timer en vegetablesalad View | Diff
#19361 2013-05-19 16:14:40 api/haxe/timer en vegetablesalad View | Diff
#19360 2013-05-13 17:42:34 doc/libraries en Confidant View | Diff
#19359 2013-05-13 05:01:15 manual/macros/advanced en jason View | Diff
#19358 2013-05-12 02:55:03 com/ide en MarcWeber View | Diff
#19357 2013-05-11 05:26:13 ref/conditionals jp shohei909 View | Diff
#19356 2013-05-10 09:29:15 manual/completion en jason View | Diff
#19355 2013-05-09 00:24:39 download/manual_install/leopard en JLM View | Diff
#19354 2013-05-09 00:10:46 download/manual_install/leopard/justinsbuildnotes en JLM View | Diff
#19353 2013-05-08 18:42:04 com/news en ncannasse View | Diff
#19352 2013-05-08 18:12:08 manual/haxe3 en ncannasse View | Diff
#19351 2013-05-08 18:09:11 manual/haxe3 en Simn View | Diff
#19350 2013-05-08 18:04:19 manual/haxe3 en ncannasse View | Diff
#19349 2013-05-08 15:57:29 doc/haxelib/haxelib2 en jason View | Diff
#19348 2013-05-08 15:57:29 doc/haxelib/haxelib2 en jason Changed title from Haxelib 2 to Haxelib 3
#19347 2013-05-08 15:21:08 manual/haxe3/features jp shohei909 View | Diff
#19346 2013-05-08 15:15:14 manual/haxe3/features en shohei909 View | Diff

Previous | Next