如何设置GAE_SDK_ROOT环境变量?

时间:2013-11-23 20:08:20

标签: linux google-app-engine environment-variables

我正在尝试在Ubuntu本地运行Google应用,但是当我运行dev_appserver.py时,我收到此错误:

ValueError: Could not determine SDK root; please set GAE_SDK_ROOT environment variable.

有谁知道如何修复它?

2 个答案:

答案 0 :(得分:2)

export GAE_SDK_ROOT= wherever you unzipped the Google App Engine SDK

答案 1 :(得分:1)

将此添加到您的~/.profile

export CLOUDSDK_ROOT_DIR="/path/to/google/cloud/sdk/"
export APPENGINE_HOME="${CLOUDSDK_ROOT_DIR}/platform/appengine-java-sdk"
export GAE_SDK_ROOT="${CLOUDSDK_ROOT_DIR}/platform/google_appengine"

# The next line enables Java libraries for Google Cloud SDK
export CLASSPATH="${APPENGINE_HOME}/lib":${CLASSPATH}

# The next line enables Python libraries for Google Cloud SDK
export PYTHONPATH=${GAE_SDK_ROOT}:${PYTHONPATH}