JackTheGorrion 0 Posted November 9, 2021 How fix this sir? make[1]: Leaving directory /root/Hercules/src/common MAKE plugins make[1]: Entering directory /root/Hercules/src/plugins CC sample.c /usr/bin/id: cannot open output file../../plugins/sample.so: No such file or directory collect2: error: id returned 1 exit status I make[1]: * [../../plugins/sample.so] Error 1 make[1]: Leaving directory /root/Hercules/src/plugins make: * [plugins] Error 2 PD: I am using Centos 7 in Digital Ocean, I can compile in windows but not in Centos 7 can someone help me Quote Share this post Link to post Share on other sites
0 4144 366 Posted November 9, 2021 for some reason you deleted plugins directory create it as it was in hercules Quote Share this post Link to post Share on other sites
0 JackTheGorrion 0 Posted November 9, 2021 3 hours ago, 4144 said: 3 hours ago, 4144 said: for some reason you deleted plugins directory create it as it was in hercules I have the directory, the problem I have is when creating the example file market.so there is a failure to make plugins Quote Share this post Link to post Share on other sites
0 4144 366 Posted November 9, 2021 if this is only errors what you got, it show you not have directory. or may be it show other errors before. Quote Share this post Link to post Share on other sites
0 JackTheGorrion 0 Posted November 9, 2021 1 hour ago, 4144 said: 1 hour ago, 4144 said: if this is only errors what you got, it show you not have directory. or may be it show other errors before. make[1]: Entering directory `/root/Hercules/3rdparty/libconfig' CC libconfig.c CC grammar.c CC scanctx.c CC scanner.c CC strbuf.c make[1]: Leaving directory `/root/Hercules/3rdparty/libconfig' MAKE common_sql make[1]: Entering directory `/root/Hercules/src/common' AR obj_all/common.a AR obj_sql/common_sql.a AR obj_all/common_mini.a make[1]: Leaving directory `/root/Hercules/src/common' MAKE plugins make[1]: Entering directory `/root/Hercules/src/plugins' CC sample.c /usr/bin/ld: cannot open output file ../../plugins/sample.so: No such file or directory collect2: error: ld returned 1 exit status make[1]: *** [../../plugins/sample.so] Error 1 make[1]: Leaving directory `/root/Hercules/src/plugins' make: *** [plugins] Error 2 these errors I have can you show me a way to fix this Quote Share this post Link to post Share on other sites
0 4144 366 Posted November 10, 2021 yes here no any errors except missing plugins directory run this command in your hercules directory for recreate deleted dir mkdir plugins 1 JackTheGorrion reacted to this Quote Share this post Link to post Share on other sites
0 JackTheGorrion 0 Posted November 10, 2021 11 minutes ago, 4144 said: yes here no any errors except missing plugins directory run this command in your hercules directory for recreate deleted dir mkdir plugins mkdir plugins sir mkdir: cannot create directory ‘plugins’: File exists , The folder already existed, I don't know why it keeps giving an error Quote Share this post Link to post Share on other sites
0 4144 366 Posted November 10, 2021 show output from this commands id pwd ls -la plugins 1 JackTheGorrion reacted to this Quote Share this post Link to post Share on other sites
0 JackTheGorrion 0 Posted November 10, 2021 58 minutes ago, 4144 said: show output from this commands id pwd ls -la plugins id pwd ls -la plugins Thank you very much, I could solve it, thanks to you Quote Share this post Link to post Share on other sites
How fix this sir?
make[1]: Leaving directory /root/Hercules/src/common MAKE plugins
make[1]: Entering directory /root/Hercules/src/plugins
CC sample.c
/usr/bin/id: cannot open output file../../plugins/sample.so: No such file or directory collect2: error: id returned 1 exit status I
make[1]: * [../../plugins/sample.so] Error 1
make[1]: Leaving directory /root/Hercules/src/plugins make: * [plugins] Error 2
PD: I am using Centos 7 in Digital Ocean, I can compile in windows but not in Centos 7 can someone help me
Share this post
Link to post
Share on other sites