Accidentally deleted gawk and now nothing will configure :(
So unbeknownst to me until today, but apparently all configure scripts rely on some version of awk to create the Makefile when config.status is run.
Anyone have any suggestions on how to get gawk reinstalled? I have compiled one on Ubuntu and copied it to my other machine but when run it throws the error: Code:
./gawk: no such file or directory Any suggestions greatly appreciated :) |
Which OS did you remove the gawk from? Is there no package manager that can be used to reinstall it?
The error is "file not found", so at this stage of course, missing libraries are not the problem, it's the binary itself. Can you stick a gawk binary into /usr/bin and/or into /bin and see if that helps? For the record, the gawk package on my Slack box does not bring with it anything that goes in any /lib dir, only binaries in /bin and /usr/libexec/awk. The gawk binary claims dependence on: Code:
root@reactor: ldd /usr/bin/gawk |
Quote:
this is generally true. When a binary a binary is missing a shared library it displays an error like: Code:
ls: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory So this is what I think *might* be going on: ldd on my Ubuntu returns: Code:
# ldd /usr/bin/gawk In this case, creating a symlink /lib64 -> /lib (and also one for the linker) *might* solve the problem. The output of Code:
ls -l /lib*/ld-* If it works with the symlinks, then recompilation of gawk on the target system should be possible. |
Thanks for the feedback folks. I am not near the culprit at the moment so it will have to wait until tomorrow to try your advice :(
More background: I built my own CLFS Pure 64 (hence crts correct about no /lib64) Quote:
So in answer to your question, not until I fix this problem :) I will throw an update in first thing tomorrow after I try the symlinks idea (sounds plausible to me) Cheers |
Quote:
Looking forward to the update. Good luck! |
Quote:
Quote:
But since you already have the ubuntu version copied over, could you first try if symlinks might make gawk work again? Would be interesting to know. |
Quote:
BUT .... you will be happy to know that it is all back up and running and it was thanks to adding /lib64 as symlink :) My linker was already named the same so didn't have to add one for it. I have now added a line in when installing gawk to copy it to /tmp until I know it has installed correctly <whew> Thanks again |
Great it worked out. I was a bit skeptical. Since it compiled against Ubuntu I thought that there might arise some compatibility issues.
Quote:
|
All times are GMT -5. The time now is 10:00 PM. |