繁体   English   中英

无法在具有节点v11.2.0的Ubuntu 18.04中运行PopSQL

[英]Can't run PopSQL in Ubuntu 18.04 with node v11.2.0

为了学习MySQL,我使用.deb软件包安装了PopSQL,但它不起作用,当我使用sudo popsql从终端启动PopSQL时,在终端中出现了这些错误,PopSQL ui显示空白屏幕。

{"name":"PopSQL","hostname":"ivyRose","pid":16621,"level":30,"msg":"Starting app. Look for crash reports in /tmp and error logs in /home/neon/.config/PopSQL/error.log","time":"2018-11-22T12:15:27.927Z","v":0}

(popsql:16621): IBUS-WARNING **: 18:00:28.174: The owner of /home/neon/.config/ibus/bus is not root!
[Oracle] NJS-045: cannot load the oracledb add-on binary for Node.js 8.2.1 (linux, x64)
Node.js require() error was: 
  DPI-1047: 64-bit Oracle Client library cannot be loaded: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for help
Node.js require() mapped to /opt/PopSQL/resources/app.asar/node_modules/oracledb/build/Release/oracledb.node
Node-oracledb installation instructions: https://github.com/oracle/node-oracledb/blob/master/INSTALL.md
You must have 64-bit Oracle client libraries in LD_LIBRARY_PATH, or configured with ldconfig.
If you do not have Oracle Database on this computer, then install the Instant Client Basic or Basic Light package from 
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html

[ODBC] libodbc.so.1: cannot open shared object file: No such file or directory

看来您缺少mysql所需的驱动程序。 您可以从以下位置下载并安装

https://dev.mysql.com/downloads/connector/odbc/

这里的答案应该会有所帮助。

https://askubuntu.com/questions/800216/installing-ubuntu-16-04-lts-how-to-install-odbc?answertab=votes#tab-top

您不需要PopSQL即可学习MySQL。

但是,如果需要,请按照错误消息的说明进行操作:

  1. http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html下载Instant Client Basic Light软件包
  2. 解压缩
  3. 通过LD_LIBRARY_PATH或使用ldconfig(我建议后者)将目录添加到您的库搜索路径,如https://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html#ic_x64_inst所示

当需要oracledb时,PopSQL应该使用try / catch块,这样您就看不到错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM