我正在尝试通过RubyMine执行bundle install
,但收到以下错误消息:
Error Message:
Set the environment variable ORACLE_HOME if Oracle Full Client.
Append the path of Oracle client libraries to LD_LIBRARY_PATH if Oracle Instant Client.
我使用的是Oracle Instant Client,我的~/.bash_profile
包含以下内容:
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib
当我通过终端尝试bundle install
时,没有问题。我怀疑Rubymine加载的环境变量与终端应用程序启动时加载的环境变量不同。
发布于 2015-02-07 02:54:16
运行RubyMine,转到Tools -> Create Command-Line Launcher,它应该会创建一个/usr/local/bin/mine
文件。
在Ubuntu中编辑您的RubyMine启动器,并使其执行bash -ic '/usr/local/bin/mine'
( -i
用于交互式shell)
它将在加载您的配置文件(.profile、.bashrc ...)后启动RubyMine
发布于 2014-06-14 00:42:47
听起来像是你在桌面管理器中运行RubyMine,而桌面管理器的父母都没有运行你的~/.bash_profile
。解决这个问题将是一个Ubuntu的问题。
但是你可以
https://stackoverflow.com/questions/24204549
复制