最近改用rvm管理ruby了.
在其带来便利的同时,带来不少麻烦
今天想试试ruby做GUI的效果,便查了查api,发现可以通过gtk2
可是gem安装总是失败.一直没搞清楚什么原因.
乱弄一通竟然跑起来了
解决方案是在stackoverflow上随便试出来的
如果哪个同学也在此情景下遇到同样问题,也许也可以试试
在gem install gtk2之前
先
sudo apt-get install libatk1.0-dev libpanel-applet-4-dev libgtksourceview2.0-dev libvte-dev libgstreamer0.10-dev libbonobo2-dev libbonoboui2-dev libgtk2.0-dev libgdk-pixbuf2.0-dev libgtksourceview2.0-dev libpango1.0-dev libpoppler-dev libglade2-dev libart-2.0-dev libgnomeprint2.2-dev libgnomecanvas2-dev libgtkglext1-dev libgnomeprintui2.2-dev libgoocanvas-dev libgnomevfs2-dev libgconf2-dev librsvg2-dev
缺少这么多依赖...
done...