question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linux GTK error still persisting even after installing gtk package

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TristanWileycommented, Mar 2, 2018

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.

1reaction
TristanWileycommented, Feb 28, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

R fails after installing GTK and RGtk2 - Stack Overflow
I load the package into R3.0 and run one of the demo. I see (for an instant) that a graph is generated, but...
Read more >
GTK - ArchWiki
This article will explore the tools used to configure the GTK theme, style, icon, font and font size, and also detail manual configuration....
Read more >
Getting error GTK when compiling although GTK is already ...
I'm a linux newbie and trying to compile a software but getting an error;. it is telling me that GTK is not installed...
Read more >
What would cause file-roller Gtk-CRITICAL errors?
It might be as simple as the case that there is a dependent package that is not properly tagged as such, and thus...
Read more >
"fatal error: gtk/gtk.h: No such file or directory" using make
First, you must modify the top level configure.ac file to add the Gtk-2.0 dependency. You can use the PKG_CHECK_MODULES macro to run pkg-config...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found