I was trying to compile expect for an old OS today and got stuck with the following error when linking
ld: Cannot find -lexpect545
It turns out that the problem with the default Makefile
is to just creating libexpect.so.1
which is a dynamic link lib. But there is no recipe to create libexpect545.so
.
Fortunately, The fix is pretty easy. All I had to do is to link libexpect545.so
to libexpect.so.1
with the following command:
ln -s libexpect.so.1 libexpect545.so
or if you are using static linking... try the following:
ln -s libexpect.a libexpect545.a
Yeah, I know. This is super annoying. How come they don't do it correctly. I probably should put mine up on Github just to track it.
No comments:
Post a Comment