install: "fatal error: 'glib.h' file not found"

803 views
Skip to first unread message

Frank Koenig

unread,
Feb 1, 2015, 8:25:02 AM2/1/15
to tor...@googlegroups.com
Hi there,

I tried to install torch7 on OS X 10.10.2, but get the following error:

~$ curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash

Updated Homebrew from 549e4ee9 to 22e10f50.

==> Updated Formulae

stty: stdin isn't a terminal

artifactory  ht   mvnvm

Warning: git-2.2.2 already installed

Warning: readline-6.3.8 already installed

Warning: cmake-3.1.1_1 already installed

Warning: wget-1.16.1 already installed

Warning: qt-4.8.6 already installed

Warning: jpeg-8d already installed

Warning: imagemagick-6.9.0-3 already installed

Warning: zeromq-4.0.5_2 already installed

Warning: graphicsmagick-1.3.20 already installed

Warning: Already linked: /usr/local/Cellar/readline/6.3.8

To relink: brew unlink readline && brew link readline

Warning: brew-cask-0.53.0 already installed

Warning: A Cask for xquartz is already installed. Add the "--force" option to force re-install.

Error: No such keg: /usr/local/Cellar/gnuplot

Warning: gnuplot: --with-x was deprecated; using --with-x11 instead!

Warning: gnuplot: --pdf was deprecated; using --with-pdflib-lite instead!

Warning: gnuplot: --wx was deprecated; using --with-wxmac instead!

Warning: gnuplot: --cairo was deprecated; using --with-cairo instead!

Warning: gnuplot: --nolua was deprecated; using --without-lua instead!

==> Downloading https://downloads.sourceforge.net/project/gnuplot/gnuplot/5.0.0/

Already downloaded: /Library/Caches/Homebrew/gnuplot-5.0.0.tar.gz

==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/gnuplot/5.0.0 

==> make

make[4]: *** [term.o] Error 1

make[3]: *** [all-recursive] Error 1

make[2]: *** [all] Error 2

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2


READ THIS: http://git.io/brew-troubleshooting


==> Torch7's dependencies have been installed

~$




So I tried to install gnuplot manually:

~$ brew --version

0.9.5

~$ brew install gnuplot --wx --cairo --pdf --with-x --nolua

Warning: gnuplot: --with-x was deprecated; using --with-x11 instead!

Warning: gnuplot: --pdf was deprecated; using --with-pdflib-lite instead!

Warning: gnuplot: --wx was deprecated; using --with-wxmac instead!

Warning: gnuplot: --cairo was deprecated; using --with-cairo instead!

Warning: gnuplot: --nolua was deprecated; using --without-lua instead!

==> Downloading https://downloads.sourceforge.net/project/gnuplot/gnuplot/5.0.0/gnuplot-5.0.0.tar.gz

Already downloaded: /Library/Caches/Homebrew/gnuplot-5.0.0.tar.gz

==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/gnuplot/5.0.0 --with-readline=/usr/local/opt/readline --with-pdf=/usr/local/opt/pdflib-lite --with-gd=/usr/local/opt

==> make

make[4]: *** [term.o] Error 1

make[3]: *** [all-recursive] Error 1

make[2]: *** [all] Error 2

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2


READ THIS: http://git.io/brew-troubleshooting


~$ 



I have attached the make log file. In there on can see this:


In file included from term.c:1185:

In file included from ./term.h:410:

../term/cairo.trm:89:10: fatal error: 'glib.h' file not found

#include "glib.h"               /* For guint32 */

         ^

1 error generated.

make[4]: *** [term.o] Error 1

make[3]: *** [all-recursive] Error 1

make[2]: *** [all] Error 2

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2



So the header file glib.h seems to not be in the path?


~$ find /usr/local/ -name glib.h

/usr/local//Cellar/glib/2.42.1/include/glib-2.0/glib.h

~$ 



What can I do?

02.make

smth chntla

unread,
Feb 2, 2015, 2:08:48 PM2/2/15
to tor...@googlegroups.com
We cant really support build breaks for gnuplot.
You can just skip it, it is an optional package anyways!
Reply all
Reply to author
Forward
0 new messages