[Rant-cafe] Ubuntu / Mac OS X difference

Russel Winder russel at russel.org.uk
Fri Jun 15 06:53:38 EDT 2007


Stefan,

> Could you run it via system from irb, to narrow the problem?
> Once via
> 
>     system "epstopdf", "firstarg", "nextarg"...
> 
> and once via
> 
>     system "epstopdf firstarg nextarg..."
> 
> and inspect $? after each run.

From the Bash command line:

|> epstopdf --outfile=Figures/theFundamentals/square.pdf
Figures/theFundamentals/square.dia.eps
|> echo $?
0
|> 

Using irb:

|> irb
irb(main):001:0> system( "epstopdf
--outfile=Figures/theFundamentals/square.pdf
Figures/theFundamentals/square.dia.eps" )
=> false
irb(main):002:0> system( "epstopdf" ,
"--outfile=Figures/theFundamentals/square.pdf" ,
"Figures/theFundamentals/square.dia.eps" )
=> false
|> 

I guess this is a path problem of some sort.

|> echo $PATH
.:/Users/russel/bin:/Users/russel/lib/Java/groovy/bin:/Users/russel/lib/Java/maven/bin:/Users/russel/lib/Scala/bin:/usr/local/teTeX/bin/i386-apple-darwin-current:/Library/Frameworks/Python.framework/Versions/Current/bin:/opt/local/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/teTeX/bin/i386-apple-darwin-current
|> which epstopdf
/usr/local/teTeX/bin/i386-apple-darwin-current/epstopdf
|> 

-- 
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             russel at russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/rant-cafe/attachments/20070615/062f792c/attachment.bin 


More information about the Rant-cafe mailing list