IBM Worklight - Mac - “WEBWORKS_HOME”环境变量未定义“ [英] IBM Worklight - Mac - "'WEBWORKS_HOME' environment variable is undefined"

查看:217
本文介绍了IBM Worklight - Mac - “WEBWORKS_HOME”环境变量未定义“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为在Mac OS X上的IBM Worklight设置BlackBerry 10环境。我很确定我已经正确添加了WebWorks SDK的环境变量。

I'm working to set up the BlackBerry 10 environment on IBM worklight on Mac OS X. I'm pretty sure that I correctly added the environment variable for the WebWorks SDK.

我在这两个文件中添加了这两行:.profile,.bash_profile:

I added these 2 lines in these 2 files: .profile, .bash_profile:

export WEBWORKS_HOME=/Developer/SDKs/Research\ In\ Motion/BlackBerry\ 10\ WebWorks\ SDK\ 1.0.4.11<br>
export PATH=$PATH:$WEBWORKS_HOME

但是我仍然收到此错误构建:

But I'm still getting this error during the build:


blackberry10构建失败:'WEBWORKS_HOME'环境变量是
未定义。

blackberry10 build failed: The 'WEBWORKS_HOME' environment variable is undefined.


推荐答案

以下内容适用于我。


  1. 从此位置安装最新的BlackBerry 10 WebWorks SDK: https ://developer.blackberry.com/html5/downloads/?os = mac#blackberry10

由于我无法/不确定如何使用空格可变路径(有一种方法可以这样做,我只是没有想到),我更名为路径文件夹:

As I was unable/unsure how to work with spaces in the variable path (there is a way to do so, I just haven't figured it out), I renamed the path folders:

From: / Developer / SDKs / Research In Motion / BlackBerry 10 WebWorks SDK 1.0.4.11

/Developer/SDKs/RIM/1.0.4.11

打开终端应用程序,


  • 类型: code> sudo vi /etc/launchd.conf

  • 按'我'进入编辑模式

  • 键入: setenv WEBWORKS_HOME /Developer/SDKs/RIM/1.0.4.11

  • 按'ESC'键入:$ code >:wq 保存并退出VI

  • 重新启动计算机

  • Type: sudo vi /etc/launchd.conf
  • Press 'i' to enter edit mode
  • Type: setenv WEBWORKS_HOME /Developer/SDKs/RIM/1.0.4.11
  • Press 'ESC' and type: :wq to save and quit VI
  • Restart the computer

这篇关于IBM Worklight - Mac - “WEBWORKS_HOME”环境变量未定义“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆