我和柯南有些安装问题
在我的ubuntu18.04告诉“找不到命令‘conan’之后,我猜是Python 版本错误。所以我试着升级结果
$ sudo apt-get install python
python is already the newest version (2.7.15~rc1-1)
然而
^{pr2}$在这种状态下,我试图安装柯南
$ pip install conan
Collecting conan
...
Successfully installed Jinja2-2.10.1 MarkupSafe-1.1.1 PyJWT-1.7.1 PyYAML-5.1.2 astroid-1.6.6 attrs-19.1.0 backports.functools-lru-cache-1.5 bottle-0.12.17 certifi-2019.6.16 chardet-3.0.4 colorama-0.4.1 conan-1.18.0 configparser-3.7.4 deprecation-2.0.6 distro-1.1.0 enum34-1.1.6 fasteners-0.15 future-0.16.0 futures-3.3.0 idna-2.8 isort-4.3.21 lazy-object-proxy-1.4.1 mccabe-0.6.1 monotonic-1.5 node-semver-0.6.1 packaging-19.1 patch-1.16 pluginbase-0.7 pygments-2.4.2 pylint-1.9.5 pyparsing-2.4.2 python-dateutil-2.8.0 requests-2.22.0 singledispatch-3.4.0.3 six-1.12.0 tqdm-4.32.2 urllib3-1.25.3 wrapt-1.11.2
然后“conan”被列为正在安装,但是
$ conan
Command 'conan' not found, did you mean:
也就是说,没有错误消息或警告,就是不能安装。 我发现路径没有在我的路径中列出,所以我添加了'~.local/bin'。现在故事继续,错误消息
CMake Error at CMakeLists.txt:90 (include):
include could not find load file:
Conan
我发现了 https://docs.conan.io/en/latest/howtos/cmake_launch.html。 好吧,我把我的CMakeLists.txt文件文件行
# Download automatically, you can also just copy the conan.cmake file
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/master/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake")
endif()
include(${CMAKE_BINARY_DIR}/conan.cmake)
conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable
BASIC_SETUP)
我也被建议
Please specify in command line CMAKE_BUILD_TYPE
(-DCMAKE_BUILD_TYPE=Release)
所以我用
cmake .. -DCMAKE_BUILD_TYPE=Release
而不是
cmake ..
我还是收到
ERROR: compiler not defined for compiler.libcxx
Please define compiler value first too
FATAL_ERROR;conan install command failed.
STATUS;Conan: Compiler GCC>=5, checking major version 7
STATUS;Conan: Checking correct version: 7
大约两周前,我可以在另一个系统上完美地安装相同的项目。我能回到那种状态吗?我希望柯南是稳定的,而不是阿尔法。在
编辑2: 我发布了
conan profile new default --detect --force
答案是
Found gcc 7
gcc>=5, using the major as version
************************* WARNING: GCC OLD ABI COMPATIBILITY ***********************
Conan detected a GCC version > 5 but has adjusted the 'compiler.libcxx' setting to
'libstdc++' for backwards compatibility.
Your compiler is likely using the new CXX11 ABI by default (libstdc++11).
(我真的不知道为什么在一个新项目中我需要向后兼容)之后
cmake ..
最后似乎奏效了。恐怕由于编译器的标准,我会有更多的问题。例如,SystemC默认为'98,但其他一些库使用feature needed'14,而现在conan强制使用'11。有没有一种方法可以集中处理所有这些问题,特别是针对我的系统?在
关于python的两个版本:我没有手动安装这个,只有其他一些安装程序这样做了。我真的不知道为什么以及哪个安装脚本导致了这样的翻倍。顺便说一句:Ubuntu说V2.7是最新版本,尽管V3.x也存在。我对这些版本号有点困惑。 我只是简单地做了一个新的安装,当python的第二个版本出现时并不是特别特别好。我个人甚至不使用python,只有一些安装脚本可以安装它。在
我的制度是否具体:我不这么认为。我刚刚安装了ubuntu18.04.2,我的主要目标是安装这个与SystemC相关的东西。我真的只安装了被声明为丢失的东西。(加上livetex、git等)
在此期间,“cmake…”终止。显然,柯南的安装结束了。但是,在配置我的项目时,会给出如下消息
^{14}$丢失的文件也由conan安装,使用
[requires]
SystemC/2.3.3@minres/stable
SystemCVerification/2.0.1@minres/stable
doxygen_installer/1.8.15@bincrafters/stable
qt/5.12.0@bincrafters/stable
gtest/1.8.1@bincrafters/stable
flex/2.6.4@bincrafters/stable
我使用的是完全相同的文件(要么是连接到总线的旧磁盘,要么是新磁盘,使用相同的电缆)。大约一个月前安装的设备运行良好,新的运行情况如所述。在
看来安装和使用柯南对我来说太复杂了。我想简化安装,而不是使其复杂化。在
这里列出了许多与安装相关的案例:
https://docs.conan.io/en/latest/installation.html#known-installation-issues-with-pip
我会说,柯南已安装,但没有列入您的路径。您可以在Python包文件夹中找到Conan,并用Conan PATH更新您的路径:
相关问题 更多 >
编程相关推荐