Discussion:
installing Ipe on Mac OSX 10.6
Brett Bishop
2009-11-22 22:26:58 UTC
Permalink
Hi
At the risk of annoying many people, could some one provide a novice level step by step guide to installing Ipe on a Mac running OSX 10.6. Please take into consideration that I am not familiar with accessing the command line for file installation and need some one to hold my hand - so to speak.
ThanksBrett
_________________________________________________________________
For more of what happens online Head to the Daily Blob on Windows Live
http://windowslive.ninemsn.com.au/blog.aspx
Gwenaël Cléon
2009-12-06 11:16:11 UTC
Permalink
Hi everybody,

I finally succeeded ti compile ipe on MacOSX. The main problem was
(thanks to Yves Brise !) that the old librairies of ipe 6 were still
in /usr/local/lib and /usr/local/include. After that I had to compile
manually fontconfig, cairo and pixman (had to add /usr/local/lib/
pkgconfig in the PKG_CONFIG_PATH). Then, compilation OK, and
installation OK. BUT when I try to launch ipe, it crashes with the
following error message :

macbook:src gwenael$ /usr/local/bin/ipe
[string "require "main""]:1: module 'main' not found:
no field package.preload['main']
no file '/opt/ipe-7/share/ipe/7.0.8/lua/main.lua'
no file './main.so'
no file '/usr/local/lib/lua/5.1/main.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
[string "require "main""]:1: in main chunk

and it's true that I can't find these files. Any explanation ?

Thanks (I know that the goal is near now...)

Gwenael
Post by Brett Bishop
Hi
At the risk of annoying many people, could some one provide a novice
level step by step guide to installing Ipe on a Mac running OSX
10.6. Please take into consideration that I am not familiar with
accessing the command line for file installation and need some one
to hold my hand - so to speak.
Thanks
Brett
Head to the Daily Blob on Windows Live For more of what happens
online _______________________________________________
Ipe-discuss mailing list
https://mail.cs.uu.nl/mailman/listinfo/ipe-discuss
Otfried Cheong
2009-12-06 11:28:54 UTC
Permalink
Post by Gwenaël Cléon
I finally succeeded ti compile ipe on MacOSX. The main problem was
(thanks to Yves Brise !) that the old librairies of ipe 6 were still in
/usr/local/lib and /usr/local/include. After that I had to compile
manually fontconfig, cairo and pixman (had to add
/usr/local/lib/pkgconfig in the PKG_CONFIG_PATH). Then, compilation OK,
and installation OK. BUT when I try to launch ipe, it crashes with the
macbook:src gwenael$ /usr/local/bin/ipe
no field package.preload['main']
no file '/opt/ipe-7/share/ipe/7.0.8/lua/main.lua'
no file './main.so'
no file '/usr/local/lib/lua/5.1/main.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
[C]: in function 'require'
[string "require "main""]:1: in main chunk
and it's true that I can't find these files. Any explanation ?
It seems you simply haven't said "make install". Ipe is now partly
written in Lua, and the Lua files have to be found somehow. They are
originally in "src/ipe/lua", and are installed to
".../share/ipe/7.0.8/lua" by make install.

You could try to set IPELUAPATH to ".../src/ipe/lua/?.lua" before trying
Ipe.

By the way, the most recent version is 7.0.9 :-)

Otfried
Gwenaël Cléon
2009-12-06 12:26:14 UTC
Permalink
Thanks.
I actually did the make install.
export LUAPATH=ipe/lua/?.lua
solved the previous error. But now there is a new one :

fopen error: No such file or directory
stack traceback:
[C]: in function 'assert'
ipe/lua/model.lua:407: in function 'newDocument'
ipe/lua/model.lua:100: in function 'init'
ipe/lua/model.lua:37: in function 'new'
ipe/lua/main.lua:243: in main chunk
[C]: in function 'require'
[string "require "main""]:1: in main chunk


Ideas ?
Post by Otfried Cheong
Post by Gwenaël Cléon
I finally succeeded ti compile ipe on MacOSX. The main problem was
(thanks to Yves Brise !) that the old librairies of ipe 6 were
still in /usr/local/lib and /usr/local/include. After that I had to
compile manually fontconfig, cairo and pixman (had to add /usr/
local/lib/pkgconfig in the PKG_CONFIG_PATH). Then, compilation OK,
and installation OK. BUT when I try to launch ipe, it crashes with
macbook:src gwenael$ /usr/local/bin/ipe
no field package.preload['main']
no file '/opt/ipe-7/share/ipe/7.0.8/lua/main.lua'
no file './main.so'
no file '/usr/local/lib/lua/5.1/main.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
[C]: in function 'require'
[string "require "main""]:1: in main chunk
and it's true that I can't find these files. Any explanation ?
It seems you simply haven't said "make install". Ipe is now partly
written in Lua, and the Lua files have to be found somehow. They are
originally in "src/ipe/lua", and are installed to
".../share/ipe/7.0.8/lua" by make install.
You could try to set IPELUAPATH to ".../src/ipe/lua/?.lua" before trying
Ipe.
By the way, the most recent version is 7.0.9 :-)
Otfried
_______________________________________________
Ipe-discuss mailing list
https://mail.cs.uu.nl/mailman/listinfo/ipe-discuss
Otfried Cheong
2009-12-06 13:05:55 UTC
Permalink
Post by Gwenaël Cléon
Thanks.
I actually did the make install.
export LUAPATH=ipe/lua/?.lua
fopen error: No such file or directory
[C]: in function 'assert'
ipe/lua/model.lua:407: in function 'newDocument'
ipe/lua/model.lua:100: in function 'init'
ipe/lua/model.lua:37: in function 'new'
ipe/lua/main.lua:243: in main chunk
[C]: in function 'require'
[string "require "main""]:1: in main chunk
Ipe doesn't find the standard stylesheet. It should normally be in
(with your path) /opt/ipe-7/share/ipe/7.0.8/styles/basic.isy

make install should have put it there. If it isn't, you should
investigate what went wrong with "make install". If you go into the
"src/ipe" directory and say "make install", you should see what it is
doing - are the paths correct?

Also note that if you called "make" as "make IPEPREFIX=/opt/ipe-7" then
you also need to do "make install" as "make install IPEPREFIX=/opt/ipe-7"

Otfried
Gwenaël Cléon
2009-12-06 14:00:32 UTC
Permalink
Post by Otfried Cheong
Also note that if you called "make" as "make IPEPREFIX=/opt/ipe-7"
then you also need to do "make install" as "make install IPEPREFIX=/
opt/ipe-7"
OK, the crashes came from this.
Now everything works fine, ipe 7 runs fine on Mac OS X 10.6 !
Thanks everybody for advises.

Gwenael

Loading...