Mac安装hue

安装官网的建议安装步骤,当到make apps一步时出现'mysql.c:44:10: fatal error: 'my_config.h' file not found',是版本问题,文件MySQL-python 1.2.5的版本对应见这里。我把mysql8卸载了,安装5.5版本。

所以我找Mac版本的mysql5.5可是官网都没有,可以直接用brew安装,

brew search mysql

能够看到已安装和可安装的版本,安装用以下命令,

brew install [email protected]

然后就出现了这个问题,mysql_config: command not found,在网上查了查发现应该是环境变量的问题,所以添加环境变量。

先查看安装的mysql地址,

brew info mysql

然后在~/.bash_profile文件中添加环境变量

vi ~/.bash_profile

文件内添加格式是

export PATH=$PATH:<PATH 1>:<PATH 2>:<PATH 3>:------:<PATH N>

比如我的就是

export PATH=${PATH}:/usr/local/opt/[email protected]/bin

然后source一下

source ~/.bash_profile

就可以了

猜你喜欢

转载自blog.csdn.net/Cribug8080/article/details/81092807
HUE