Giter Site home page Giter Site logo

Check install environment about iysql HOT 9 CLOSED

influx-code avatar influx-code commented on May 31, 2024
Check install environment

from iysql.

Comments (9)

gangh avatar gangh commented on May 31, 2024 4

image

这里的environment是我哪里搞错了?

查看 init.sh 可知,其中是检查的 soar 这个 cmd 在不在,所以将 soar 所在的位置加入 PATH 即可

执行:

export PATH="your soar pwd:$PATH"

from iysql.

ty4z2008 avatar ty4z2008 commented on May 31, 2024

你配置环境变量了么?

alias soar=/root/soft/soar-master/soar
export soar=/root/soft/soar-master/soar

from iysql.

Striver-gjx avatar Striver-gjx commented on May 31, 2024

你配置环境变量了么?

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.

ty4z2008 avatar ty4z2008 commented on May 31, 2024

你配置环境变量了么?

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.

ltxlong avatar ltxlong commented on May 31, 2024

我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.

ty4z2008 avatar ty4z2008 commented on May 31, 2024

我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

from iysql.

ltxlong avatar ltxlong commented on May 31, 2024

我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就行了。不过又有新的错误:

image

from iysql.

ty4z2008 avatar ty4z2008 commented on May 31, 2024

@ltxlong

我们是基于Python3开发的。你贴一下你的错误

from iysql.

ltxlong avatar ltxlong commented on May 31, 2024

@ltxlong

我们是基于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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.