Comments (9)
这里的environment是我哪里搞错了?
查看 init.sh 可知,其中是检查的 soar 这个 cmd 在不在,所以将 soar 所在的位置加入 PATH 即可
执行:
export PATH="your soar pwd:$PATH"
from iysql.
你配置环境变量了么?
alias soar=/root/soft/soar-master/soar
export soar=/root/soft/soar-master/soar
from iysql.
你配置环境变量了么?
alias soar=/root/soft/soar-master/soar export soar=/root/soft/soar-master/soar
你配置环境变量了么?
alias soar=/root/soft/soar-master/soar export soar=/root/soft/soar-master/soar
环境变量是在/etc/profile里面配置嘛?
我的报这个:
soar is not set.Eg:
alias soar=/root/soar
export soar=/root/soar
from iysql.
你配置环境变量了么?
alias soar=/root/soft/soar-master/soar export soar=/root/soft/soar-master/soar
你配置环境变量了么?
alias soar=/root/soft/soar-master/soar export soar=/root/soft/soar-master/soar
环境变量是在/etc/profile里面配置嘛?
我的报这个:
soar is not set.Eg:
alias soar=/root/soar
export soar=/root/soar
你需要配置alias 和export。可以在/etc/profile也可以在~/.bashrc
from iysql.
我soar和iysql都放在/var/下
export PATH=加了/var/soar
export soar=/var/soar
alias soar=/var/soar
还是报这个:
soar is not set.Eg:
alias soar=/root/soar
export soar=/root/soar
Ubuntu16.04
from iysql.
我soar和iysql都放在/var/下
export PATH=加了/var/soar
export soar=/var/soar
alias soar=/var/soar还是报这个:
soar is not set.Eg:
alias soar=/root/soar
export soar=/root/soarUbuntu16.04
你在命令行中执行which soar
看看返回什么。如果是xxx not found所有没有配置好。配置完环境变量之后记得要source your_environment_file
from iysql.
我soar和iysql都放在/var/下
export PATH=加了/var/soar
export soar=/var/soar
alias soar=/var/soar
还是报这个:
soar is not set.Eg:
alias soar=/root/soar
export soar=/root/soar
Ubuntu16.04你在命令行中执行
which soar
看看返回什么。如果是xxx not found所有没有配置好。配置完环境变量之后记得要source your_environment_file
之前把soar安装在/var/的时候,which soar啥也没返回,我按照你的图,
将soar重新安装在/usr/local/bin/之后,which soar有返回路径了。
之后就是按照/usr/local/bin/soar这个路径配置,但初始化的时候还是出了点问题,pip3报错,我改为pip就行了。不过又有新的错误:
from iysql.
我们是基于Python3开发的。你贴一下你的错误
from iysql.
我们是基于Python3开发的。你贴一下你的错误
解决了是Python版本的问题,我的Ubuntu默认Python版本是2.7,切换到Python3就好了。
总结如下:
在/usr/local/bin/下安装soar和iysql;(解决which soar没东西的问题)
然后直接export soar=/usr/local/bin/soar;(解决soar is not set.Eg的问题)
然后直接python -V查看Python版本(要求Python3);
到/usr/bin/备份Python2.7连接并切换到Python3:
sudo cp /usr/bin/python /usr/bin/python_bak
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python3 /usr/bin/python
python -V查看是否切换成功;
然后切换到/usr/local/bin/iysql/目录下(必须);
然后执行pip install -U pip;(解决You are using pip version 8.1.1, however version 18.1 is available)
执行./scripts/init.sh;(不能直接切换到scripts目录下运行,必须在iysql目录下用./scripts/来调用运行)
执行./scripts/start.sh;(成功,完成)
SQLAdvisor也是一样的操作。
from iysql.
Related Issues (13)
- CleanUp failed Error: Received #1044 error from MySQL server: "Access denied for user ''@'10.%.%.%' to database 'optimizer_fkkV2wd427Mm7lwQ'" HOT 1
- make db password invisible HOT 1
- 配置了环境变量报错 HOT 2
- 执行命令出错:[Errno 8] Exec format error HOT 1
- 有支持docker的计划吗? HOT 1
- 初始化脚本/scripts/init.sh执行失败 HOT 1
- soar 的report type最好使用markdown或者html HOT 3
- 配置环境变量错误,提示soar is not set HOT 1
- 希望可以支持windows HOT 1
- add setup.py HOT 5
- Permision denied HOT 10
- Error: No available formula with the name "python3-pip" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iysql.