conan-io / conan-io/training

Exercise: Consume Packages from Artifactory fails when using ../catchup.sh # option 8

Open
#101 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
63
Forks
38
PR merge metrics
No merged PRs in 30d

Description

I had to reboot my machine and either didn't shutdown my docker container correctly or perhaps restarted from the original (vs. resuming). Either way, before doing the "Remote Repositories on Artifactory" section, I ran the catchup script, option 8.

The first 3 Artifactory exercises went fine, but I ran into a snag on the last one ("Exercise: Consume Packages from Artifactory"), and I believe the tutorial may be flawed there. First clue is it has me do a `cd build` to a directory which doesn't exist (i.e. `~/training/consumer/build`). I created the directory, but then it wants me to do a `conan install .. -r=artifactory` to force it to build from my remote. However, since my remote doesn't have `boost/1.72.0`, that fails. Note the following shell output from the commands:

```bash
conan@824609cf0f97:~/training$ cd consumer
conan@824609cf0f97:~/training/consumer$ cd build
bash: cd: build: No such file or directory
conan@824609cf0f97:~/training/consumer$ conan install .. -r=artifactory
ERROR: Conanfile not found at /home/conan/training/conanfile.py or /home/conan/training/conanfile.txt
conan@824609cf0f97:~/training/consumer$ cd build
bash: cd: build: No such file or directory
conan@824609cf0f97:~/training/consumer$ mkdir build
conan@824609cf0f97:~/training/consumer$ cd build
conan@824609cf0f97:~/training/consumer/build$ conan install .. -r=artifactory
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=10
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

boost/1.72.0: Retrieving from server 'artifactory'
boost/1.72.0: Trying with 'artifactory'...
ERROR: boost/1.72.0 was not found in remote 'artifactory'
conan@824609cf0f97:~/training/consumer/build$ cmake .. -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:6 (include):
include could not find load file:

/home/conan/training/consumer/build/conanbuildinfo.cmake

CMake Error at CMakeLists.txt:7 (conan_basic_setup):
Unknown CMake command "conan_basic_setup".

-- Configuring incomplete, errors occurred!
See also "/home/conan/training/consumer/build/CMakeFiles/CMakeOutput.log".
conan@824609cf0f97:~/training/consumer/build$ cmake --build
Usage: cmake --build [options] [-- [native-options]]
Options:
= Project binary directory to be built.
--parallel [], -j []
= Build in parallel using the given number of jobs.
If is omitted the native build tool's
default number is used.
The CMAKE_BUILD_PARALLEL_LEVEL environment variable
specifies a default parallel level when this option
is not given.
--target ..., -t ...
= Build instead of default targets.
--config = For multi-configuration tools, choose .
--clean-first = Build target 'clean' first, then build.
(To clean only, use --target 'clean'.)
--verbose, -v = Enable verbose output - if supported - including
the build commands to be executed.
-- = Pass remaining options to the native tool.
conan@824609cf0f97:~/training/consumer/build$

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the “Remote Repositories on Artifactory” exercise and the option 8 catchup setup in the training materials. Compare the documented commands with the reported paths and the missing boost/1.72.0 remote package. Update the exercise so a fresh run reaches a successful CMake configure and build, then verify the command sequence in the training container.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, shell
Domain
build-system, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.