Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux GTK error still persisting even after installing gtk package #36

Closed
TristanWiley opened this issue Feb 27, 2018 · 10 comments
Closed

Comments

@TristanWiley
Copy link

I've referenced #16 regarding the GTK requirement and have it installed. However, the error I'm getting is still persisting.

In this I'm using create-proton-app although it occurs even when using just npm install

Creating a new Proton Native app on /home/tristan/ProtonDemo

Installing packages... Make take a few minutes.


> libui-node@0.0.12 install /home/tristan/ProtonDemo/node_modules/libui-node
> libui-download && autogypi && npm run build && npm run copy-node

Downloaded zip: /home/tristan/.libui/libui-shared-linux-x64-pre11.alpha.4.tar.gz
Libui binaries extracted to: /home/tristan/ProtonDemo/node_modules/libui-node

> libui-node@0.0.12 build /home/tristan/ProtonDemo/node_modules/libui-node
> node-gyp configure build

Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
gyp: Call to 'pkg-config gtk+-3.0 --cflags-only-I | sed s/-I//g' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/tristan/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-116-generic
gyp ERR! command "/home/tristan/.nvm/versions/node/v8.8.1/bin/node" "/home/tristan/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /home/tristan/ProtonDemo/node_modules/libui-node
gyp ERR! node -v v8.8.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! libui-node@0.0.12 build: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libui-node@0.0.12 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tristan/.npm/_logs/2018-02-27T16_01_47_970Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! libui-node@0.0.12 install: `libui-download && autogypi && npm run build && npm run copy-node`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libui-node@0.0.12 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tristan/.npm/_logs/2018-02-27T16_01_48_356Z-debug.log

An error ocurred:
 npm install --save --loglevel error proton-native has failed.
@kusti8
Copy link
Owner

kusti8 commented Feb 27, 2018

What is the exact name of the package you installed?

@TristanWiley
Copy link
Author

build-essential and libgtk-3-dev
One was already installed

@albe-rosado
Copy link
Contributor

@TristanWiley which distro are you using?

@TristanWiley
Copy link
Author

Elementary OS, aka Ubuntu 14.04

@albe-rosado
Copy link
Contributor

@TristanWiley check you have: build-essential (12.4ubuntu1) and libgtk-3-dev (3.22.25-0ubuntu0.1) installed while I install elementary to try to reproduce the bug.

@albe-rosado
Copy link
Contributor

albe-rosado commented Feb 28, 2018

virtualbox_elem_27_02_2018_19_59_02
this was a fresh install of the lastest version of elementaryOS. Just installed libgtk-3-dev and node v8 and no problem so far.
@TristanWiley @kusti8

@TristanWiley
Copy link
Author

Hmm. I'll spend some more time debugging. Thanks for testing!

@albe-rosado
Copy link
Contributor

@TristanWiley did you were able to get it working? try with create-proton-app cli, otherwise I think this issue should be closed if the problem isn't related to Proton Native.

@TristanWiley
Copy link
Author

I haven't gotten it working yet. I've tried with the CPA cli and it was the same issue. I'll figure it out eventually and report back.

Some setup issue I presume.

@TristanWiley
Copy link
Author

Looks like it was missing from my PATH.

export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig

Fixed it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants