Comments (5)
The error means it failed to import libpq driver which is C-compiled so depends on platform architecture. Do you have 32bit or 64bit version of Ubuntu? The available build is only for x64
from sqltabs.
64bit
sudo apt-get install libpq-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpq-dev is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-63 linux-headers-3.13.0-63-generic
linux-image-3.13.0-63-generic linux-image-extra-3.13.0-63-generic
python-wicd wicd-daemon
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
from sqltabs.
Something went wrong during compilation of libpq binding.
Check the electron
version you have, should be 0.27.3:
$ electron --version
[2769:1229/143739:ERROR:browser_main_loop.cc(173)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
v0.27.3
If version is OK try to recompile libpq binding:
rm -rf node_modules/libpq/
export npm_config_disturl=https://atom.io/download/atom-shell
export npm_config_target=0.27.3
export npm_config_arch=x64
export npm_config_runtime=electron
npm install git+https://github.com/sasha-alias/node-libpq.git
Expected output would be smth like:
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/bindings/1.2.1
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings/1.2.1
> [email protected] install /home/alp/sqltabs/node_modules/libpq
> node-gyp rebuild
make: Entering directory `/home/alp/sqltabs/node_modules/libpq/build'
CXX(target) Release/obj.target/addon/src/connection.o
CXX(target) Release/obj.target/addon/src/connect-async-worker.o
CXX(target) Release/obj.target/addon/src/addon.o
SOLINK_MODULE(target) Release/obj.target/addon.node
SOLINK_MODULE(target) Release/obj.target/addon.node: Finished
COPY Release/addon.node
make: Leaving directory `/home/alp/sqltabs/node_modules/libpq/build'
npm WARN unmet dependency /home/alp/sqltabs/node_modules/c3 requires d3@'<=3.5.0' but will load
npm WARN unmet dependency /home/alp/sqltabs/node_modules/d3,
npm WARN unmet dependency which is version 3.5.12
[email protected] node_modules/libpq
├── [email protected]
└── [email protected]
If the compilation fails ensure you have picked by your shell the environment variables npm_config_disturl
, npm_config_target
, npm_config_arch
, npm_config_runtime
.
just echo them:
$ echo $npm_config_target
0.27.3
Also ensure you have pg_config
from libpq-dev
package installed and accessible in your PATH:
$ pg_config --version
PostgreSQL 9.3.10
from sqltabs.
it worked, i don't know what was wrong
i did libpq recompiling, and used bash instead of fish
thanks, great app
from sqltabs.
fish
has a different way of setting environment variables, it's not fully bash compatible so instead of
export
you should use set
command.
from sqltabs.
Related Issues (20)
- Chart building error: ReferenceError: c3 is not defined HOT 3
- Feature Request: add support for SHOW command
- Error : A JavaScript error occurred in the main process HOT 7
- Not running HOT 1
- How to get a document by document id in google firestore? HOT 3
- Could Not Display SQLTABS
- Starting query HOT 2
- For each query execution a new connection is opened HOT 2
- Disconnect from DB HOT 2
- Quoted object info error
- Lost window handler
- How to escape '@' in MySQL username when connecting HOT 2
- How do I query a subcollection in Firestore HOT 2
- how do I select a document in Firestore HOT 3
- Table columns not displayed with Postgresql13
- Connection to Postgres fails for passwords containing hashtags #
- Development - working on sqltabs
- Error: Client does not support authentication protocol requested by server; consider upgrading MySQL client
- www.sqltabs.com is down HOT 1
- Long time/time out when querying firestore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqltabs.