Thursday, July 2, 2009

jai & tail: cannot open `+215' for reading: No such file or directory

tail: cannot open `+215' for reading: No such file or director

I already had this once and I was able to forget. When installing jai_imageio in your jdk you might get this.
For example it happend me with jai_imageio-1_1-lib-linux-amd64-jdk.bin but I remember last time it was on a 32 bit.

The fix is really easy with sed (do not use a text editor to change, else the binary content of the installer will get corrupted). You just have to change the tail command syntax to work:

sed s/+215/-n+215/ jai_imageio-1_1-lib-linux-amd64-jdk.bin > jai_imageio-1_1-lib-linux-amd64-jdk-fixed.bin

Then run sh jai_imageio-1_1-lib-linux-amd64-jdk-fixed.bin

as a gentle anonymous hacker stated:

export _POSIX2_VERSION=199209

also works and is nicer than the idea to change the installation file. Thanks!
Post a Comment