Forum: Ruby-Gnome 2 Will someone install visualruby on a MAC?

0d130f179f85401f248e6ebc2ef8292f?d=identicon&s=25 Eric C. (eric_c)
on 2012-05-24 08:58
hi:

I need a volunteer who's familiar with installing gtk stuff on a MAC.
I'm trying to get my friend to install visualruby on his MAC but it just
hangs.  I'm not sure if its due to missing components or not.

If anyone is working on a MAC, please try to install visualruby, and let
me know how you get it working so I can inform my friend and other how
to install it on a MAC.

http://visualruby.net

As far as I know.  the steps are:

Use Ruby version 1.9.3
1) Install glade interface designer version 3.6.7 - 3.8
(this should install gtk2 too)
2) Install getsourceview2.0-dev
3) gem install visualruby

Thanks,
Eric C
0d130f179f85401f248e6ebc2ef8292f?d=identicon&s=25 Eric C. (eric_c)
on 2012-06-19 00:07
I've posted install instructions for the MAC on my website.  Also, I
officially released visualruby version 0.1.0 today.

visualruby.net

Thanks,
Eric
46a8ebdfabc2485407f89a2db5bdafb7?d=identicon&s=25 Igor Pirnovar (rooby)
on 2012-07-07 23:57
Eric C. wrote in post #1065032:
> I've posted install instructions for the MAC on my website.  Also, I
> officially released visualruby version 0.1.0 today.
>
> visualruby.net
>
> Thanks,
> Eric

I followed the instructions to install VR on Mac from your page
http://visualruby.net/site/Download.html:

1. brew install gtk+
2. brew install gtksourceview
3. gem install visualruby

When installing on Mac OS X (Lion 10.7.4) the second step from above
list fails:

--------------------------------------------------------------------------------
$ brew install gtk+
O.K.

$ brew install gtksourceview

  o o o
  o o o

  CC     gtksourcecompletionwordsutils.lo
/bin/sh ../../../libtool --silent --tag=CC   --mode=compile
/usr/bin/clang -DHAVE_CONFIG_H -I. -I../../..
-DDATADIR=\""/usr/local/Cellar/gtksourceview/2.10.5/share"\"
-DG_LOG_DOMAIN=\"GtkSourceView\" -I../../.. -I.  -Wall
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare
-I/usr/local/Cellar/cairo/1.12.2/include
-I/usr/local/Cellar/pixman/0.26.2/include
-I/usr/local/Cellar/libffi/3.0.11/include
-I/usr/local/Cellar/gettext/0.18.1.1/include -isystem /usr/local/include
-Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7
-c -o gtksourcecompletionwordsutils.lo gtksourcecompletionwordsutils.c
In file included from gtksourcecompletionwordslibrary.c:22:
./gtksourcecompletionwordslibrary.h:26:10: fatal error: 'glib-object.h'
file not found
#include <glib-object.h>
         ^
In file included from gtksourcecompletionwordsproposal.c:23:
./gtksourcecompletionwordsproposal.h:26:10: fatal error: 'glib-object.h'
file not found
#include <glib-object.h>
         ^
In file included from gtksourcecompletionwords.c:23:
In file included from ./gtksourcecompletionwords.h:26:
../../../gtksourceview/gtksourcecompletionprovider.h:27:10: fatal error:
'glib.h' file not found
#include <glib.h>
         ^
In file included from gtksourcecompletionwordsbuffer.c:23:
./gtksourcecompletionwordsbuffer.h:26:10: fatal error: 'glib-object.h'
file not found
#include <glib-object.h>
In file included from gtksourcecompletionwordsutils.c:23         ^
:
./gtksourcecompletionwordsutils.h:23:10: fatal error: 'gtk/gtk.h' file
not found
#include <gtk/gtk.h>
         ^
1 error generated.
1 error generated.
make[4]: *** [gtksourcecompletionwordsproposal.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [gtksourcecompletionwordsutils.lo] Error 1
1 error generated.
1 error generated.
make[4]: *** [gtksourcecompletionwordslibrary.lo] Error 1
make[4]: *** [gtksourcecompletionwordsbuffer.lo] Error 1
1 error generated.
make[4]: *** [gtksourcecompletionwords.lo] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1
config.log was copied to /Users/igor/Library/Logs/Homebrew
==> Build Environment
CPU: 8-core 64-bit sandybridge
OS X: 10.7.4-x86_64
Xcode: 4.3.3
X11: 2.6.4 @ /usr/X11
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
-mmacosx-version-min=10.7
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
-mmacosx-version-min=10.7
CPPFLAGS: -I/usr/local/Cellar/cairo/1.12.2/include
-I/usr/local/Cellar/pixman/0.26.2/include
-I/usr/local/Cellar/libffi/3.0.11/include
-I/usr/local/Cellar/gettext/0.18.1.1/include -isystem /usr/local/include
LDFLAGS: -L/usr/local/Cellar/cairo/1.12.2/lib
-L/usr/local/Cellar/pixman/0.26.2/lib
-L/usr/local/Cellar/libffi/3.0.11/lib
-L/usr/local/Cellar/gettext/0.18.1.1/lib -L/usr/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.7
MAKEFLAGS: -j8
PKG_CONFIG_PATH:
/usr/local/Cellar/cairo/1.12.2/lib/pkgconfig:/usr/local/Cellar/pixman/0.26.2/lib/pkgconfig:/usr/local/Cellar/libffi/3.0.11/lib/pkgconfig
Error: Failed executing: make install (gtksourceview.rb:16)
If `brew doctor` does not, this may help you fix or report the issue:
    https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
$
-----------------------------------------------------------------
Following the instructions from the suggested web page in the last line
above, does not solve the problem!

I was able to install on Ubuntu, however, my old libglade stuff stopped
working, after I installed Ruby 1.9.3, though it also used to be broken
but at least libglade2 existed, which is now gone!?!?
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.