Open edx Fullstack安装及安装错误整理

手动安装步骤

1.更新源

sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot

2.安装pip及虚拟化

sudo apt-get install -y build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev libfreetype6-dev python-pip python-apt python-dev libxmlsec1-dev swig
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv

3.克隆

cd /var/tmp
git clone https://github.com/edx/configuration

4.安装依赖

cd /var/tmp/configuration
sudo pip install -r requirements.txt

5.一键安装

cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost,"

6.
断点续装命令

cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost," --start-at-task="edxapp | install python base-requirements"

常见错误整理

错误一

sh: mysql_config: not found

Traceback (most recent call last):

  File"setup.py", line 15, in <module>

   metadata, options = get_config()

  File"/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 43,in get_config

    libs= mysql_config("libs_r")

  File"/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 24,in mysql_config

   raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

只要原因是没有安装:libmysqlclient-dev

sudo apt-get install libmysqlclient-dev

找到mysql_config文件的路径

sudo updatedb

locate mysql_config

错误二:

ERROR: /var/tmp/configuration/playbooks/roles/common/defaults/main.ymlmust be stored as dictionary/hash: <type 'str'>

cd /var/tmp/configuration/playbooks

vim main.yml

删除COMMON_SSH_PASSWORD_AUTH:”yes”

 

错误三:

TASK: [aws | update the ssh motd on Ubuntu] ***************************

changed: [localhost] =>(item=/etc/update-motd.d/10-help-text)

changed: [localhost] =>(item=/usr/share/landscape/landscape-sysinfo.wrapper)

failed: [localhost] =>(item=/etc/update-motd.d/51-cloudguest) => {“failed”: true, “item”:“/etc/update-motd.d/51-cloudguest”, “path”: “/etc/update-motd.d/51-cloudguest”,“state”: “absent”}

msg: file (/etc/update-motd.d/51-cloudguest)is absent, cannot continue

changed: [localhost] =>(item=/etc/update-motd.d/91-release-upgrade

sudo touch /etc/update-motd.d/51-cloudguest

通常会产生错误三

错误三:

TASK:[aws | update the ssh motd onUbuntu] I've got error fatal: [localhost] => error whileevaluating conditional: vagrant_home_dir.stat.exists == false

找到这个文件/var/tmp/configuration/playbooks/roles/aws/tasks/main.yml

可以注释掉:

- name: update the ssh motd on Ubuntu

  file: >

    mode=0644

    path={{ item }}

  when: vagrant_home_dir.stat.exists == false

  with_items:

  - "/etc/update-motd.d/10-help-text"

  - "/usr/share/landscape/landscape-sysinfo.wrapper"

  - "/etc/update-motd.d/51-cloudguest"

  - "/etc/update-motd.d/91-release-upgrade"

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

刘元涛

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值