sasha-alias / sqltabs

Rich SQL client for Postgresql, MySQL, MS SQL, Amazon Redshift, Google Firebase (Firestore)
https://www.sqltabs.com
GNU General Public License v3.0
803 stars 57 forks source link

Issue with building from sources #39

Closed sasha-alias closed 7 years ago

sasha-alias commented 8 years ago

Please, report here any issues with building from sources.

kmoppel commented 8 years ago

Still no luck on Ubuntu 14.04 64bit - "gyp_main.py: error: no such option: --no-parallel gyp ERR! configure error ". Sounds like some dependency hell...so I'd still vote for somekind of Docker image :)

npm install

=> libpq@1.6.4 install /ssd/code/pgtools/sqltabs/node_modules/libpq => node-gyp rebuild

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 2 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 3.13.0-55-generic gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /ssd/code/pgtools/sqltabs/node_modules/libpq gyp ERR! node -v v4.2.4 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok

sasha-alias commented 8 years ago

Try to follow the troubleshooting steps I described here https://github.com/sasha-alias/sqltabs/issues/41#issuecomment-167795429

sasha-alias commented 7 years ago

SQL Tabs switched to javascript drivers, it simplified building a lot. Closing this thread

Tommydreamer57 commented 5 years ago

Hey there, I think this is where my question belongs.

I get the error ‘uv_tcp_init_ex’ was not declared in this scope in "../deps/grpc/src/core/lib/iomgr/tcp_uv.cc" when running npm install for the first time in the repository.

I'm using Ubuntu 19.04, 64bit.

npm i
...
../deps/grpc/src/core/lib/iomgr/tcp_uv.cc: In function ‘grpc_error* uv_socket_init_helper(uv_socket_t*, int)’:
../deps/grpc/src/core/lib/iomgr/tcp_uv.cc:190:16: error: ‘uv_tcp_init_ex’ was not declared in this scope
   int status = uv_tcp_init_ex(uv_default_loop(), tcp, (unsigned int)domain);
                ^~~~~~~~~~~~~~
../deps/grpc/src/core/lib/iomgr/tcp_uv.cc:190:16: note: suggested alternative: ‘uv_tcp_init’
   int status = uv_tcp_init_ex(uv_default_loop(), tcp, (unsigned int)domain);
                ^~~~~~~~~~~~~~
                uv_tcp_init
make: *** [grpc.target.mk:482: Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_uv.o] Error 1
make: Leaving directory '/home/tommydreamer57/Development/sqltabs/node_modules/@firebase/firestore/node_modules/grpc/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
...

Any ideas what I can do?

sasha-alias commented 5 years ago

Hi, might be related to the version of nodejs you have installed. Check node --version. It shouldn't be higher than 10.

Tommydreamer57 commented 5 years ago

Hey thanks, I downgraded to node 10.16.0 (with npm 6.9.0) got it to install and run, but now I'm getting an error in the console that says "Cannot find module './build/App.js'"

I tried running the build script as well as the build:linux script and uninstalling/reinstalling, but every time the same error.

sasha-alias commented 5 years ago

@Tommydreamer57 oh, that's my bad. Just have sent a fix, try to pull and rerun:

git pull
npm run build
npm start
Tommydreamer57 commented 5 years ago

Awesome it works now! Thanks!