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
--------------
Update:
as a gentle anonymous hacker stated:
export _POSIX2_VERSION=199209
also works and is nicer than the idea to change the installation file. Thanks!
Brillian thanks :) Works a treat with 32bit/64bit
ReplyDeletetks
ReplyDeleteIt works! Thanks
ReplyDeleteseems that
ReplyDelete_POSIX2_VERSION=199209
export _POSIX2_VERSION
also works.
Solution in post worked quite well. Thx.
ReplyDeleteYou, sir, are a gentleman and a scholar.
ReplyDeleteThank you so much. This saved us a lot of headache!
ReplyDeleteThanks for that!
ReplyDeleteTried everything else for hours until I found this. Worked great, thanks!
ReplyDelete3 years later: Thank you!!!
ReplyDeleteWell done. Thanks.
ReplyDeleteYou saved me from having to change HUNDERDS of tail commands in 3rd party scripts. Be praised!!!
ReplyDelete