I modified a .bin file for the software ELAN so the path to one of my libraries is correct (after installation, ELAN can't find the library because the path is not right). So I used Emacs to correct this.
But when I use the commands to install the .bin file:
sudo chmod +x ELAN_440_linux_novm_install.bin
./ELAN_440_linux_novm_install.bin
I get the error message:
Preparing to install...
Extracting the installation resources from the installer archive...
The size of the extracted files to be installed are corrupted. Please try to download the installer again and make sure that you download using 'binary' mode.
Please do not attempt to install this currently downloaded copy.
This is probably because I added a few characters to the problematic string.
Is there a way to force the installation, as I know that the file wasn't corrupted before I edited it?
Manipulating installation files is a bad idea in most cases like this. As you already noticed, this broke the checksum (maintained to ensure noone tampered with it and possibly introduced malicious code). A much better idea is to solve such issues outside, either by adjusting path variables (which would not work in this case), or by the use of symbolic links.
In your case, the solution is as easy as
So when looking for
/lib/libc.so.6
, the binary finds the symlink and "gets redirected" to/lib/i386-linux-gnu/libc.so.6
(to put it into easy words -- how it works exactly, you can read in the linked Wikipedia page; but for your understanding it suffices to think of it as a special kind of "bookmark" -- so even if the file itself gets replaced, the symlink stays valid, pointing to the updated file then).