On Wednesday 15 September 2010, David Kahn wrote:
> Jumped the gun, did not try the strace command. Got:

How *did* you get this output then?

> execve("/usr/local/bin/wkhtmltopdf-i386",
> ["/usr/local/bin/wkhtmltopdf-i386"], [/* 18 vars */]) = 0
> [ Process PID=14199 runs in 32 bit mode. ]
> old_mmap(0x13d8000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0x13d8000) = 0x13d8000
> readlink("/proc/self/exe", "/usr/local/bin/wkhtmltopdf-i386", 4096) =
> 31 old_mmap(0x8048000, 23455403, PROT_READ|PROT_WRITE|PROT_EXEC,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x8048000
> mprotect(0x8048000, 23455400, PROT_READ|PROT_EXEC) = 0
> old_mmap(0x96a7000, 786811, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0x165e000) = 0x96a7000
> mprotect(0x96a7000, 786808, PROT_READ|PROT_WRITE) = 0
> old_mmap(0x9768000, 87848, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x9768000
> brk(0x977e000)                          = 0xb767000
> open("/lib/ld-linux.so.2", O_RDONLY)    = -1 ENOENT (No such file or
> directory)
> _exit(127)                              = ?
> 
> Could that last line be the problem?
> When I check /lib I have /lib/ld-linux-x86-64.so.2
> But not /lib/ld-linux.so.2

Are you sure that the i386-binary is the correct one for your system?  
If you're running a 64-bit Linux, the amd64 tarball is the right one for 
you. No matter if you have an Intel or AMD CPU! The naming is like that 
for "historical" reasons, I reckon, as it was AMD who introduced this 
extension of the original i386/IA-32 architecture.

See http://en.wikipedia.org/wiki/X86-64 . And have look at the output of 
uname -a.

Michael

-- 
Michael Schuerig
mailto:[email protected]
http://www.schuerig.de/michael/

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to