Hi everyone,
I am compiling openCARP on a new machine. I keep getting the following error:
[ 28%] Generate a C header file defining some information about the build
Traceback (most recent call last):
File "/home/username/openCARP/simulator/build_info.py", line 204, in <module>
print_build_info(filename)
File "/home/username/openCARP/simulator/build_info.py", line 184, in print_build_info
git_info = generate()
File "/home/username/openCARP/simulator/build_info.py", line 161, in generate
info = git(os.path.dirname(os.path.abspath(__file__)))
File "/home/username/openCARP/simulator/build_info.py", line 108, in git
result = run(['git', 'rev-list', '--all', '--count'])
File "/home/username/openCARP/simulator/build_info.py", line 35, in run
proc = subprocess.Popen(cmd, env=env, stdout=subprocess.PIPE)
File "/home/username/.conda/envs/openCarpEnv/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/username/.conda/envs/openCarpEnv/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'git'
gmake[2]: *** [simulator/build_info.h] Error 1
gmake[1]: *** [simulator/CMakeFiles/carp.dir/all] Error 2
gmake: *** [all] Error 2
it is not my first time in compiling openCARP and I haven't had this kind of problem before. I am pretty sure dependencies are correctly installed and also if I run git --version I get "git version 2.34.1".
Thank you in advance,
Edoardo