After fighting the error, I finally found the cause.
In findMotifsGenome.pl script, there are 2 lines in top of the file.
use lib "/homer-directory/.//bin";
my $homeDir = "/homer-directory/./";
However, this homer-directory is set as compiled directory. After compiled homer, I move program directory, so is has changed.
Thank you for your comment !
Just a guess but I would remove these
&since this sends all processes to background while starting them simultaneously. Install the basic Homer first, wait until finished properly, then install additional stuff like annotations for your organism. Do things sequentially but properly. If you want this sequentially this would be&&, not&. Still do it manually, typing in one command after the other and check the log messages for each step.