In my linux PC, there was previously installed admb on /usr/local.
It seems that make tried cp directory ../build/admb under the existing directory /usr/local/admb.
However since there was already a link /usr/local/admb/admb linked to /usr/local/admb/bin/admb,
this caused error cp: cannot overwrite non-directory '/usr/local/admb/admb' with directory '../build/admb'
This probably can be fixed either by changing
cp -Rvf ../build/admb $(INSTALL_DIR)admb
to
cp -Rvf ../build/admb $(INSTALL_DIR)
or
cp -Rvf ../build/admb/* $(INSTALL_DIR)admb
I have no idea if it happend on my PC or is common install failure
On Ubuntu 18.04
sudo make install
failed with following error messageIn my linux PC, there was previously installed admb on /usr/local. It seems that make tried cp directory ../build/admb under the existing directory /usr/local/admb. However since there was already a link /usr/local/admb/admb linked to /usr/local/admb/bin/admb, this caused error
cp: cannot overwrite non-directory '/usr/local/admb/admb' with directory '../build/admb'
This probably can be fixed either by changingto
or
I have no idea if it happend on my PC or is common install failure