如何为 Haxe 设置 Jeash?
我正在尝试为 Haxe 设置 Jeash,所以我读了以下内容: http://old. haxe.org/com/libs/jeash/firststeps
现在,我发现我还不能做到这一点:
“这是您第一次运行 haxelib。请先运行 haxelib 安装程序”
(我喜欢其中的拼写错误 :P )
所以我决定阅读以下内容: http://haxe.org/com/haxelib/setup
我尝试了建议的内容。第一条命令,系统会提示我输入密码,因此我输入了在计算机上安装软件时所需的内容。
然后我运行“sudo chown jansensan -R /usr/lib/haxe”(用我的实际用户名“jansensan”替换“myusername”),然后收到错误:“chown:-R:没有这样的文件或目录
”有没有办法获得更多信息?我的意思是,Haxe 网站上的解释听起来好像会神奇地发生,但事实并非如此。
对于任何感兴趣的人(如果它可以帮助您理解我的问题),我的计算机是运行 Snow Leopard 的 MacBook Pro,我打算使用 FDT 进行编码。顺便说一句,我已经可以在 FDT 中做一些 Haxe 的事情了,为什么我需要运行 Haxe 安装程序才能安装 Jeash 和 NME?
I am trying to setup Jeash for Haxe, so I read this: http://old.haxe.org/com/libs/jeash/firststeps
Now, I found out that I cannot do that just yet:
"This is the first time you are runing haxelib. Please run haxelib setup first"
(and I love the typo in there :P )
So I decided to read this: http://haxe.org/com/haxelib/setup
I tried what is suggested. First command, I get prompted for a password, so I enter what is necessary when I install software on my comp.
Then I ran "sudo chown jansensan -R /usr/lib/haxe" (replacing "myusername" with my actual username, "jansensan") and then I get an error: "chown: -R: No such file or directory"
Is there a way to get a little bit more information? I mean, the explanation on the Haxe website makes it sound as it if will magically happen, and it is not the case.
For anyone interested (if it helps you understand my issue), my computer is a MacBook Pro running Snow Leopard and I intend to code in FDT. BTW, I can already do some Haxe stuff in FDT, why would I need to run the Haxe setup to be able to install Jeash and NME?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
另一种选择是使用 NME 安装程序:
http://www.haxenme.org
它将安装 Haxe、Neko、 HXCPP、NME 和 Jeash 一气呵成。 NME 支持 Windows、Mac、Linux、Android、iOS、webOS、Flash 和 HTML5——使用 Jeash 处理的 HTML5 目标。
Another alternative is to use the NME installer:
http://www.haxenme.org
It will install Haxe, Neko, HXCPP, NME and Jeash in one go. NME supports Windows, Mac, Linux, Android, iOS, webOS, Flash and HTML5 -- the HTML5 target handled using Jeash.
您正在使用 FDT 而没有安装其他 Haxe,对吗?这很重要,因为 FDT 附带了它自己的 Haxe“安装”。
您可以通过两种方式获得它:
预测你的使用情况。
将其添加到 Haxelib。
对于命令行:您需要使 haxelib 对命令行可见。
首先输入“which haxelib”。这将告诉您
1) 是否通过命令行安装了 haxelib。
2)它在哪里。
如果出现错误,则您的命令行将看不到该错误。没关系,您只需要在调用时添加整个路径即可。像这样:
另请注意,由于 FDT 5 是作为 OSX 捆绑包提供的,因此您必须“通过右键单击 FDT -> 在其内部“显示内容”。
当您拥有此路径时(或者如果您使用自己的 haXe SDK 版本),您可以使用它来调用 haxelib。
将其添加到源路径
下载库源代码并将其物理添加到你的源路径。
You're using FDT and no other Haxe installation right? This is important because FDT comes with it's own 'installation' of Haxe.
You have it two ways:
project your using.
Add it to Haxelib.
For command line: you're going to need to make haxelib visible to your command line.
Get started by typing 'which haxelib'. This will tell you
1) if you have haxelib via command line.
2) Where it is.
If there is an error, then it's not visible to your command line. This is ok, you'll just need to add the whole path when calling it. Like this:
Also notice that since FDT 5 is shipped as an OSX bundle you'll have to go 'inside' of it via right click FDT -> 'Show Contents'.
When you have this path (or if you are using your own version of the haXe SDK ), you can use it to call haxelib.
Add it to source path
Download the library source code and physically add it to your source path.
haxelib 是一个 lib 存储库。它将库添加到您的工作流程中。 jeash 和 NME 就是其中之一。
一旦你安装了haxe。你只需在终端 haxelib setup 中运行即可。通常情况下一切顺利。
我也在使用 macpro 雪豹。从来没有遇到过任何问题!
在终端上测试 haxelib ..它告诉我们什么?
haxelib is a lib repositories .It adds libs to your workflow. jeash and NME are one of them.
once you have installed haxe. you just have to run in the terminal haxelib setup.Normally it goes fine.
I'm on macpro snow leopard too.Never had issues with that !.
test haxelib on terminal .. wath does it tell ?
所有这些建议都非常好。处理所有这些终端编写的另一种方法是访问 http://www.haxenme。 org/developers/get-started/ 并使用提供的安装程序。然后,进入FDT>偏好设置。 Haxe SDK 并添加 haxelib 的安装路径,最有可能是“/usr/lib/haxe”。
All these suggestions are quite good. An alternative to dealing with all this Terminal writing is to go to http://www.haxenme.org/developers/get-started/ and use the installers provided. Afterwards, go in the prefs of FDT > Haxe SDK and add the path where the haxelib was installed, "/usr/lib/haxe" most likely.