roboptim-core icon indicating copy to clipboard operation
roboptim-core copied to clipboard

Failed to proper download the package

Open lia2790 opened this issue 2 years ago • 2 comments

Dear all,

I have tried to download the repo through the following command

git clone --recursive https://github.com/roboptim/roboptim-core.git

as suggested due to the presence of submodules.

But I obtain the following errors

liana@liana-MS-7820:~/catkin_ws/src/iit-relax-ros-pkg (new_version_devel)$ git clone --recursive https://github.com/roboptim/roboptim-core.git
Clone in 'roboptim-core' in corso...
remote: Enumerating objects: 78964, done.
remote: Total 78964 (delta 0), reused 0 (delta 0), pack-reused 78964
Ricezione degli oggetti: 100% (78964/78964), 67.22 MiB | 605.00 KiB/s, fatto.
Risoluzione dei delta: 100% (71748/71748), fatto.
Sottomodulo '.travis' (git://github.com/jrl-umi3218/jrl-travis.git) registrato per il percorso '.travis'
Sottomodulo 'cmake' (git://github.com/jrl-umi3218/jrl-cmakemodules.git) registrato per il percorso 'cmake'
Sottomodulo 'tests/shared-tests' (git://github.com/roboptim/roboptim-shared-tests.git) registrato per il percorso 'tests/shared-tests'
Clone in '/home/liana/catkin_ws/src/iit-relax-ros-pkg/roboptim-core/.travis' in corso...
fatal: impossibile collegarsi a github.com:
github.com[0: 140.82.121.4]: errno=Connessione scaduta

fatal: clone di 'git://github.com/jrl-umi3218/jrl-travis.git' nel percorso del sottomodulo ('/home/liana/catkin_ws/src/iit-relax-ros-pkg/roboptim-core/.travis') non riuscito
Clone di '.travis' non riuscito. Nuovo tentativo programmato
Clone in '/home/liana/catkin_ws/src/iit-relax-ros-pkg/roboptim-core/cmake' in corso...
fatal: impossibile collegarsi a github.com:
github.com[0: 140.82.121.4]: errno=Connessione scaduta

fatal: clone di 'git://github.com/jrl-umi3218/jrl-cmakemodules.git' nel percorso del sottomodulo ('/home/liana/catkin_ws/src/iit-relax-ros-pkg/roboptim-core/cmake') non riuscito
Clone di 'cmake' non riuscito. Nuovo tentativo programmato
Clone in '/home/liana/catkin_ws/src/iit-relax-ros-pkg/roboptim-core/tests/shared-tests' in corso...
fatal: impossibile collegarsi a github.com:
github.com[0: 140.82.121.3]: errno=Connessione scaduta

fatal: clone di 'git://github.com/roboptim/roboptim-shared-tests.git' nel percorso del sottomodulo ('/home/liana/catkin_ws/src/iit-relax-ros-pkg/roboptim-core/tests/shared-tests') non riuscito
Clone di 'tests/shared-tests' non riuscito. Nuovo tentativo programmato
Clone in '/home/liana/catkin_ws/src/iit-relax-ros-pkg/roboptim-core/.travis' in corso...
fatal: impossibile collegarsi a github.com:
github.com[0: 140.82.121.4]: errno=Connessione scaduta

fatal: clone di 'git://github.com/jrl-umi3218/jrl-travis.git' nel percorso del sottomodulo ('/home/liana/catkin_ws/src/iit-relax-ros-pkg/roboptim-core/.travis') non riuscito

sorry for the Italian but basically it fails in downloading the submodules

  • git://github.com/jrl-umi3218/jrl-travis.git
  • git://github.com/jrl-umi3218/jrl-cmakemodules.git
  • git://github.com/roboptim/roboptim-shared-tests.git

In fact, if I try to install it, I obtain the following errors

liana@liana-MS-7820:~/catkin_ws/src/iit-relax-ros-pkg/roboptim-core/build (master)$ cmake ..
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:19 (INCLUDE):
  INCLUDE could not find load file:

    cmake/base.cmake


CMake Error at CMakeLists.txt:20 (INCLUDE):
  INCLUDE could not find load file:

    cmake/boost.cmake


CMake Error at CMakeLists.txt:21 (INCLUDE):
  INCLUDE could not find load file:

    cmake/lapack.cmake


CMake Error at CMakeLists.txt:22 (INCLUDE):
  INCLUDE could not find load file:

    cmake/cpack.cmake


CMake Error at CMakeLists.txt:23 (INCLUDE):
  INCLUDE could not find load file:

    cmake/eigen.cmake


CMake Error at CMakeLists.txt:24 (INCLUDE):
  INCLUDE could not find load file:

    cmake/msvc-specific.cmake


CMake Error at CMakeLists.txt:153 (SETUP_PROJECT):
  Unknown CMake command "SETUP_PROJECT".


-- Configuring incomplete, errors occurred!
See also "/home/liana/catkin_ws/src/iit-relax-ros-pkg/roboptim-core/build/CMakeFiles/CMakeOutput.log".

I have also to download the package via direct download (.zip file) and run git submodule init && git submodule update, but I obtain the same error during the installation.

How could I solve it?

thank you in advance

lia2790 avatar May 30 '22 09:05 lia2790

Hi @lia2790

GitHub has removed access through the git protocol so you have to use https instead:

git config --global url."https://github".insteadOf git://github

Then you can re-run git submodule update --init to fetch the submodules and the build should work

See https://github.com/roboptim/roboptim-core/issues/124 for another possible issue down the line.

gergondet avatar May 30 '22 10:05 gergondet

hi @gergondet,

thank you very much! thanks to that, I have downloaded it correctly!

lia2790 avatar May 30 '22 10:05 lia2790