loopback连接oracle问题
发布于 8 年前 作者 tm-TFS 3595 次浏览 来自 问答

因为项目需要使用loopback连接oracel,在一开始就遇到了问题,所以请教大家,希望有经验的大神能帮我解答下。 以下是我的安装步骤,不知哪里有纰漏: 1、slc loopback 创建项目:(只是简单的empty-server 应该不会有问题- -) ? What’s the name of your application? oracle-t ? Enter name of the directory to contain the project: oracle-t create oracle-t/ info change the working directory to oracle-t

? What kind of application do you have in mind? empty-server (An empty LoopBack API, without any configured models or datasources)

2、npm install 也比较顺利

3、npm install loopback-connector-oracle --save 问题就来了,出现这样一段话: “strong-oracle.rc” has been created in $HOME. Please manually add the following to your “.bash_profile”:

source /Users/weiyateng/strong-oracle.rc

If you do not use bash as your default shell, please remember to set $DYLD_LIBRARY_PATH prior to using node: export DYLD_LIBRARY_PATH=":/Users/weiyateng/WebstormProjects/oracle-t/node_modules/instantclient"

感觉是这里出现问题,不知是什么意思,我的系统是mac的,连接mysql的时候很顺利,oracel就会报oracel 没有安装的错误,希望告知。

3 回复

问题已经得到解决,要谢谢google。 https://docs.strongloop.com/display/public/LB/Installing+the+Oracle+connector 其中提到要把这段话加入 .bash_profile 中: if [ -f ~/strong-oracle.rc ]; then source ~/strong-oracle.rc fi 用处是激活我们的终端 oracle setting

顺便提到一点,当我们在安装 loopback-connector-oracle 时,系统会默认在我们 User/(你的用户名) 下建立一个strong-oracle.rc 文件。作用是配置oracle 环境变量,具体怎么流程我便不知咯,

加了已不行啊。。你是什么系统?

@BiteBit 我的是mac的,你能找到 strong-oracle.rc 这个文件吗

回到顶部