There is no ~/.bashrc to setup user $PATH

Ubuntu用户配置与环境变量
本文介绍了在Ubuntu系统中如何为新添加的用户设置个性化的环境变量,特别是如何配置用户的$PATH变量。通过创建和编辑~/.bash_profile及~/.bashrc文件来实现自定义路径设置。

After add user in Ubuntu, there is no ~/.bashrc under user home for me to setup my own user $PATH.

 

1. man bash

 

When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads  and  executes  commands from  the  file  /etc/profile, if that file exists.  After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable.  The --noprofile option may  be  used  when  the  shell  is started to inhibit this behavior.

 

2. 

#touch ~/.bash_profile

#vim ~/.bash_profile

 

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi

 

3.

#touch ~/.bashrc

#vim ~/.bashrc

export PATH=$PATH:....

 

 

 

 

 

 

 

[OHOS ERROR] [NINJA] command failed: "/home/yeyangxi/xts/arkui/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/yeyangxi/xts/arkui/out/arkui-x arkui_targets" , ret_code: 1 [OHOS ERROR] [NINJA] [59/37473] ACTION //arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts:build_declgen(//build_plugins/toolchain/aosp:aosp_clang_arm64_release) [OHOS ERROR] [NINJA] FAILED: aosp_clang_arm64_release/obj/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/panda-declgen-1.0.0.tgz [OHOS ERROR] [NINJA] /usr/bin/env ../../arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/compile_declgen.py /home/yeyangxi/xts/arkui/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/ /home/yeyangxi/xts/arkui/out/arkui-x/aosp_clang_arm64_release/obj/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts [OHOS ERROR] [NINJA] Traceback (most recent call last): [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/out/arkui-x/../../arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/compile_declgen.py", line 61, in <module> [OHOS ERROR] [NINJA] main(sys.argv[1:]) [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/out/arkui-x/../../arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/compile_declgen.py", line 56, in main [OHOS ERROR] [NINJA] run_build(dest_and_exec_path) [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/out/arkui-x/../../arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/compile_declgen.py", line 44, in run_build [OHOS ERROR] [NINJA] run_cmd(cmd, execution_path) [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/out/arkui-x/../../arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/compile_declgen.py", line 39, in run_cmd [OHOS ERROR] [NINJA] raise Exception(stderr.decode()) [OHOS ERROR] [NINJA] Exception: npm ERR! code ELIFECYCLE [OHOS ERROR] [NINJA] npm ERR! errno 2 [OHOS ERROR] [NINJA] npm ERR! @panda/declgen@1.0.0 tsc: `tsc` [OHOS ERROR] [NINJA] npm ERR! Exit status 2 [OHOS ERROR] [NINJA] npm ERR! [OHOS ERROR] [NINJA] npm ERR! Failed at the @panda/declgen@1.0.0 tsc script. [OHOS ERROR] [NINJA] npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [OHOS ERROR] [NINJA] npm WARN Local package.json exists, but node_modules missing, did you mean to install? [OHOS ERROR] [NINJA] [OHOS ERROR] [NINJA] npm ERR! A complete log of this run can be found in: [OHOS ERROR] [NINJA] npm ERR! /home/yeyangxi/.npm/_logs/2025-09-21T17_49_10_790Z-debug.log [OHOS ERROR] [NINJA] npm ERR! code ELIFECYCLE [OHOS ERROR] [NINJA] npm ERR! errno 2 [OHOS ERROR] [NINJA] npm ERR! @panda/declgen@1.0.0 compile: `npm run tsc` [OHOS ERROR] [NINJA] npm ERR! Exit status 2 [OHOS ERROR] [NINJA] npm ERR! [OHOS ERROR] [NINJA] npm ERR! Failed at the @panda/declgen@1.0.0 compile script. [OHOS ERROR] [NINJA] npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [OHOS ERROR] [NINJA] npm WARN Local package.json exists, but node_modules missing, did you mean to install? [OHOS ERROR] [NINJA] [OHOS ERROR] [NINJA] npm ERR! A complete log of this run can be found in: [OHOS ERROR] [NINJA] npm ERR! /home/yeyangxi/.npm/_logs/2025-09-21T17_49_10_858Z-debug.log [OHOS ERROR] [NINJA] npm ERR! code ELIFECYCLE [OHOS ERROR] [NINJA] npm ERR! errno 2 [OHOS ERROR] [NINJA] npm ERR! @panda/declgen@1.0.0 build: `npm run clean && npm run compile` [OHOS ERROR] [NINJA] npm ERR! Exit status 2 [OHOS ERROR] [NINJA] npm ERR! [OHOS ERROR] [NINJA] npm ERR! Failed at the @panda/declgen@1.0.0 build script. [OHOS ERROR] [NINJA] npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [OHOS ERROR] [NINJA] npm WARN Local package.json exists, but node_modules missing, did you mean to install? [OHOS ERROR] [NINJA] [OHOS ERROR] [NINJA] npm ERR! A complete log of this run can be found in: [OHOS ERROR] [NINJA] npm ERR! /home/yeyangxi/.npm/_logs/2025-09-21T17_49_10_902Z-debug.log [OHOS ERROR] [NINJA] [OHOS INFO] User Cpu%: 0.0% [OHOS INFO] System Cpu%: 0.0% [OHOS INFO] Idle CPU%: 0% [OHOS INFO] Total Memory: 24.8GB [OHOS INFO] Free Memory: 8.1GB [OHOS INFO] Swap Memory: 7.0GB [OHOS INFO] Filesystem: /dev/sdb, Size: 492G, Used: 249G, Available: 220G, Use%: 54%, Mounted on: / [OHOS INFO] Filesystem: tmpfs, Size: 13G, Used: 0, Available: 13G, Use%: 0%, Mounted on: /mnt/wsl [OHOS INFO] Filesystem: tools, Size: 239G, Used: 149G, Available: 90G, Use%: 63%, Mounted on: /init [OHOS INFO] Filesystem: none, Size: 13G, Used: 0, Available: 13G, Use%: 0%, Mounted on: /dev [OHOS INFO] Filesystem: none, Size: 13G, Used: 16K, Available: 13G, Use%: 1%, Mounted on: /run [OHOS INFO] Filesystem: none, Size: 13G, Used: 0, Available: 13G, Use%: 0%, Mounted on: /run/lock [OHOS INFO] Filesystem: none, Size: 13G, Used: 0, Available: 13G, Use%: 0%, Mounted on: /run/shm [OHOS INFO] Filesystem: none, Size: 13G, Used: 0, Available: 13G, Use%: 0%, Mounted on: /run/user [OHOS INFO] Filesystem: tmpfs, Size: 13G, Used: 0, Available: 13G, Use%: 0%, Mounted on: /sys/fs/cgroup [OHOS INFO] Filesystem: drivers, Size: 239G, Used: 149G, Available: 90G, Use%: 63%, Mounted on: /usr/lib/wsl/drivers [OHOS INFO] Filesystem: lib, Size: 239G, Used: 149G, Available: 90G, Use%: 63%, Mounted on: /usr/lib/wsl/lib [OHOS INFO] Filesystem: C:\, Size: 239G, Used: 149G, Available: 90G, Use%: 63%, Mounted on: /mnt/c [OHOS INFO] Filesystem: D:\, Size: 1.9T, Used: 770G, Available: 1.1T, Use%: 42%, Mounted on: /mnt/d [OHOS ERROR] [NINJA] Traceback (most recent call last): [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/containers/status.py", line 47, in wrapper [OHOS ERROR] [NINJA] return func(*args, **kwargs) [OHOS ERROR] [NINJA] ^^^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/modules/ohos_build_module.py", line 70, in run [OHOS ERROR] [NINJA] raise exception [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/modules/ohos_build_module.py", line 67, in run [OHOS ERROR] [NINJA] super().run() [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/modules/interface/build_module_interface.py", line 70, in run [OHOS ERROR] [NINJA] raise exception [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/modules/interface/build_module_interface.py", line 68, in run [OHOS ERROR] [NINJA] self._ninja() [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/util/timer_util.py", line 30, in inner [OHOS ERROR] [NINJA] res = func(*arg, **kwarg) [OHOS ERROR] [NINJA] ^^^^^^^^^^^^^^^^^^^ [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/modules/interface/build_module_interface.py", line 125, in _ninja [OHOS ERROR] [NINJA] self._target_compilation() [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/modules/ohos_build_module.py", line 112, in _target_compilation [OHOS ERROR] [NINJA] self.target_compiler.run() [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/services/ninja.py", line 39, in run [OHOS ERROR] [NINJA] self._execute_ninja_cmd() [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/services/ninja.py", line 70, in _execute_ninja_cmd [OHOS ERROR] [NINJA] SystemUtil.exec_command( [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/util/system_util.py", line 135, in exec_command [OHOS ERROR] [NINJA] LogUtil.get_failed_log(log_path) [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/util/log_util.py", line 209, in get_failed_log [OHOS ERROR] [NINJA] LogUtil.get_compiler_failed_log(log_path) [OHOS ERROR] [NINJA] File "/home/yeyangxi/xts/arkui/build/hb/util/log_util.py", line 196, in get_compiler_failed_log [OHOS ERROR] [NINJA] raise OHOSException( [OHOS ERROR] [NINJA] exceptions.ohos_exception.OHOSException: COMPILE Failed! Please check error in /home/yeyangxi/xts/arkui/out/arkui-x/error.log, and for more build information in /home/yeyangxi/xts/arkui/out/arkui-x/build.log [OHOS ERROR] [NINJA] [OHOS ERROR] [NINJA] Code: 4000 [OHOS ERROR] [NINJA] [OHOS ERROR] [NINJA] Reason: COMPILE Failed! Please check error in /home/yeyangxi/xts/arkui/out/arkui-x/error.log, and for more build information in /home/yeyangxi/xts/arkui/out/arkui-x/build.log [OHOS ERROR] [NINJA] [OHOS ERROR] [NINJA] Error Type: Ninja build error [OHOS ERROR] [NINJA] [OHOS ERROR] [NINJA] Description: An unknown error occurred while executing 'ninja -C'. [OHOS ERROR] [NINJA] [OHOS ERROR] [NINJA] Solution: no solution [OHOS ERROR] [NINJA] =====build error===== yeyangxi@UICD-yeyangxi:~/xts/arkui$ ^C yeyangxi@UICD-yeyangxi:~/xts/arkui$ npm run clean npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/yeyangxi/xts/arkui/package.json npm ERR! errno -2 npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/yeyangxi/xts/arkui/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: /home/yeyangxi/.npm/_logs/2025-09-21T17_49_49_482Z-debug-0.log yeyangxi@UICD-yeyangxi:~/xts/arkui$ ^C yeyangxi@UICD-yeyangxi:~/xts/arkui$
09-23
(Navagent) lixing@DESKTOP-2PJK7EV:~/vlm/Grounded-Segment-Anything$ pip install --no-build-isolation -e GroundingDINO Obtaining file:///home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO Checking if build backend supports build_editable ... done Preparing editable metadata (pyproject.toml) ... done Requirement already satisfied: torch in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from groundingdino==0.1.0) (2.0.1) Requirement already satisfied: torchvision in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.15.2) Requirement already satisfied: transformers in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from groundingdino==0.1.0) (4.33.2) Requirement already satisfied: addict in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from groundingdino==0.1.0) (2.4.0) Requirement already satisfied: yapf in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.40.2) Requirement already satisfied: timm in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.4.12) Requirement already satisfied: numpy in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from groundingdino==0.1.0) (1.24.1) Requirement already satisfied: opencv-python in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from groundingdino==0.1.0) (4.9.0.80) Requirement already satisfied: supervision in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.18.0) Requirement already satisfied: pycocotools in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from groundingdino==0.1.0) (2.0.7) Requirement already satisfied: matplotlib>=2.1.0 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from pycocotools->groundingdino==0.1.0) (3.7.5) Requirement already satisfied: defusedxml<0.8.0,>=0.7.1 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from supervision->groundingdino==0.1.0) (0.7.1) Requirement already satisfied: opencv-python-headless>=4.5.5.64 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from supervision->groundingdino==0.1.0) (4.9.0.80) Requirement already satisfied: pyyaml>=5.3 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from supervision->groundingdino==0.1.0) (6.0.1) Requirement already satisfied: scipy==1.10.0 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from supervision->groundingdino==0.1.0) (1.10.0) Requirement already satisfied: filelock in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from torch->groundingdino==0.1.0) (3.9.0) Requirement already satisfied: typing-extensions in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from torch->groundingdino==0.1.0) (4.12.2) Requirement already satisfied: sympy in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from torch->groundingdino==0.1.0) (1.12) Requirement already satisfied: networkx in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from torch->groundingdino==0.1.0) (3.1) Requirement already satisfied: jinja2 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from torch->groundingdino==0.1.0) (3.1.2) Requirement already satisfied: requests in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from torchvision->groundingdino==0.1.0) (2.32.3) Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from torchvision->groundingdino==0.1.0) (10.2.0) Requirement already satisfied: huggingface-hub<1.0,>=0.15.1 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (0.25.0) Requirement already satisfied: packaging>=20.0 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (23.2) Requirement already satisfied: regex!=2019.12.17 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (2023.12.25) Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (0.13.3) Requirement already satisfied: safetensors>=0.3.1 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (0.4.5) Requirement already satisfied: tqdm>=4.27 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (4.66.1) Requirement already satisfied: importlib-metadata>=6.6.0 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from yapf->groundingdino==0.1.0) (6.11.0) Requirement already satisfied: platformdirs>=3.5.1 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from yapf->groundingdino==0.1.0) (4.2.0) Requirement already satisfied: tomli>=2.0.1 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from yapf->groundingdino==0.1.0) (2.0.1) Requirement already satisfied: fsspec>=2023.5.0 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from huggingface-hub<1.0,>=0.15.1->transformers->groundingdino==0.1.0) (2024.2.0) Requirement already satisfied: zipp>=0.5 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from importlib-metadata>=6.6.0->yapf->groundingdino==0.1.0) (3.17.0) Requirement already satisfied: contourpy>=1.0.1 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (1.1.1) Requirement already satisfied: cycler>=0.10 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (4.49.0) Requirement already satisfied: kiwisolver>=1.0.1 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (3.1.1) Requirement already satisfied: python-dateutil>=2.7 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (2.8.2) Requirement already satisfied: importlib-resources>=3.2.0 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (6.1.1) Requirement already satisfied: MarkupSafe>=2.0 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from jinja2->torch->groundingdino==0.1.0) (2.1.3) Requirement already satisfied: charset-normalizer<4,>=2 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from requests->torchvision->groundingdino==0.1.0) (2.1.1) Requirement already satisfied: idna<4,>=2.5 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from requests->torchvision->groundingdino==0.1.0) (3.4) Requirement already satisfied: urllib3<3,>=1.21.1 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from requests->torchvision->groundingdino==0.1.0) (1.26.13) Requirement already satisfied: certifi>=2017.4.17 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from requests->torchvision->groundingdino==0.1.0) (2022.12.7) Requirement already satisfied: mpmath>=0.19 in /home/lixing/.local/lib/python3.8/site-packages (from sympy->torch->groundingdino==0.1.0) (1.3.0) Requirement already satisfied: six>=1.5 in /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages (from python-dateutil>=2.7->matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (1.16.0) Building wheels for collected packages: groundingdino Building editable for groundingdino (pyproject.toml) ... error error: subprocess-exited-with-error × Building editable for groundingdino (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [159 lines of output] Building wheel groundingdino-0.1.0 Compiling with CUDA running editable_wheel creating /tmp/pip-wheel-ndnjnp7s/.tmp-2tvureel/groundingdino.egg-info writing /tmp/pip-wheel-ndnjnp7s/.tmp-2tvureel/groundingdino.egg-info/PKG-INFO writing dependency_links to /tmp/pip-wheel-ndnjnp7s/.tmp-2tvureel/groundingdino.egg-info/dependency_links.txt writing requirements to /tmp/pip-wheel-ndnjnp7s/.tmp-2tvureel/groundingdino.egg-info/requires.txt writing top-level names to /tmp/pip-wheel-ndnjnp7s/.tmp-2tvureel/groundingdino.egg-info/top_level.txt writing manifest file '/tmp/pip-wheel-ndnjnp7s/.tmp-2tvureel/groundingdino.egg-info/SOURCES.txt' reading manifest file '/tmp/pip-wheel-ndnjnp7s/.tmp-2tvureel/groundingdino.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file '/tmp/pip-wheel-ndnjnp7s/.tmp-2tvureel/groundingdino.egg-info/SOURCES.txt' creating '/tmp/pip-wheel-ndnjnp7s/.tmp-2tvureel/groundingdino-0.1.0.dist-info' creating /tmp/pip-wheel-ndnjnp7s/.tmp-2tvureel/groundingdino-0.1.0.dist-info/WHEEL running build_py running build_ext building 'groundingdino._C' extension creating /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py:398: UserWarning: There are no g++ version bounds defined for CUDA version 11.8 warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}') Emitting ninja build file /tmp/tmp2bpn41b5.build-temp/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/4] /usr/local/cuda-11.8/bin/nvcc -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/lixing/anaconda3/envs/Navagent/include/python3.8 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/cuda_version.cu -o /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/cuda_version.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 [2/4] c++ -MMD -MF /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o.d -pthread -B /home/lixing/anaconda3/envs/Navagent/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/cuda-11.8/include -fPIC -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/lixing/anaconda3/envs/Navagent/include/python3.8 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp -o /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [3/4] /usr/local/cuda-11.8/bin/nvcc -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/lixing/anaconda3/envs/Navagent/include/python3.8 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero detected during: instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator==(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=size_t, one_sided=false, <unnamed>=0]" (61): here instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator!=(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=size_t, one_sided=false, <unnamed>=0]" /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/c10/core/TensorImpl.h(77): here /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero detected during: instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator==(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=std::size_t, one_sided=true, <unnamed>=0]" (61): here instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator!=(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=std::size_t, one_sided=true, <unnamed>=0]" /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/ATen/core/qualified_name.h(73): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(261): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_im2col_cuda(cudaStream_t, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(66): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(762): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(134): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(872): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(134): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(331): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(134): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(436): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(134): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(544): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(134): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(649): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(134): here [4/4] c++ -MMD -MF /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.o.d -pthread -B /home/lixing/anaconda3/envs/Navagent/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/cuda-11.8/include -fPIC -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/lixing/anaconda3/envs/Navagent/include/python3.8 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp -o /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ creating /tmp/tmp2bk460hh.build-lib/groundingdino g++ -pthread -B /home/lixing/anaconda3/envs/Navagent/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pthread -shared -B /home/lixing/anaconda3/envs/Navagent/compiler_compat -L/home/lixing/anaconda3/envs/Navagent/lib -Wl,-rpath=/home/lixing/anaconda3/envs/Navagent/lib -Wl,--no-as-needed -Wl,--sysroot=/ /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/cuda_version.o /tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.o -L/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/lib -L/usr/local/cuda-11.8/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o /tmp/tmp2bk460hh.build-lib/groundingdino/_C.cpython-38-x86_64-linux-gnu.so /home/lixing/anaconda3/envs/Navagent/compiler_compat/ld: cannot find -lcudart: No such file or directory collect2: error: ld returned 1 exit status Traceback (most recent call last): File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn subprocess.check_call(cmd, env=_inject_macos_ver(env)) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/bin/g++', '-pthread', '-B', '/home/lixing/anaconda3/envs/Navagent/compiler_compat', '-Wl,--sysroot=/', '-Wsign-compare', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-Wall', '-Wstrict-prototypes', '-pthread', '-shared', '-B', '/home/lixing/anaconda3/envs/Navagent/compiler_compat', '-L/home/lixing/anaconda3/envs/Navagent/lib', '-Wl,-rpath=/home/lixing/anaconda3/envs/Navagent/lib', '-Wl,--no-as-needed', '-Wl,--sysroot=/', '/tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o', '/tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o', '/tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/cuda_version.o', '/tmp/tmp2bpn41b5.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.o', '-L/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/lib', '-L/usr/local/cuda-11.8/lib64', '-lc10', '-ltorch', '-ltorch_cpu', '-ltorch_python', '-lcudart', '-lc10_cuda', '-ltorch_cuda', '-o', '/tmp/tmp2bk460hh.build-lib/groundingdino/_C.cpython-38-x86_64-linux-gnu.so']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/unixccompiler.py", line 287, in link self.spawn(linker + ld_args) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/ccompiler.py", line 1045, in spawn spawn(cmd, dry_run=self.dry_run, **kwargs) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/spawn.py", line 76, in spawn raise DistutilsExecError( distutils.errors.DistutilsExecError: command '/usr/bin/g++' failed with exit code 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 138, in run self._create_wheel_file(bdist_wheel) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 341, in _create_wheel_file files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 264, in _run_build_commands self._run_build_subcommands() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 291, in _run_build_subcommands self.run_command(name) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command super().run_command(command) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command cmd_obj.run() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 98, in run _build_ext.run(self) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run self.build_extensions() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 843, in build_extensions build_ext.build_extensions(self) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions self._build_extensions_serial() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial self.build_extension(ext) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 263, in build_extension _build_ext.build_extension(self, ext) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 581, in build_extension self.compiler.link_shared_object( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/ccompiler.py", line 758, in link_shared_object self.link( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/unixccompiler.py", line 289, in link raise LinkError(msg) distutils.errors.LinkError: command '/usr/bin/g++' failed with exit code 1 /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/dist.py:973: _DebuggingTips: Problem in editable installation. !! ******************************************************************************** An error happened while installing `groundingdino` in editable mode. The following steps are recommended to help debug this problem: - Try to install the project normally, without using the editable mode. Does the error still persist? (If it does, try fixing the problem before attempting the editable mode). - If you are using binary extensions, make sure you have all OS-level dependencies installed (e.g. compilers, toolchains, binary libraries, ...). - Try the latest version of setuptools (maybe the error was already fixed). - If you (or your project dependencies) are using any setuptools extension or customization, make sure they support the editable mode. After following the steps above, if the problem still persists and you think this is related to how setuptools handles editable installations, please submit a reproducible example (see https://stackoverflow.com/help/minimal-reproducible-example) to: https://github.com/pypa/setuptools/issues See https://setuptools.pypa.io/en/latest/userguide/development_mode.html for details. ******************************************************************************** !! cmd_obj.run() error: command '/usr/bin/g++' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building editable for groundingdino Failed to build groundingdino ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (groundingdino) (Navagent) lixing@DESKTOP-2PJK7EV:~/vlm/Grounded-Segment-Anything$
09-14
Base path: /home/guangyu/ego-planner Source space: /home/guangyu/ego-planner/src Build space: /home/guangyu/ego-planner/build Devel space: /home/guangyu/ego-planner/devel Install space: /home/guangyu/ego-planner/install #### #### Running command: "cmake /home/guangyu/ego-planner/src -DCMAKE_BUILD_TYPE=Release -DCATKIN_DEVEL_PREFIX=/home/guangyu/ego-planner/devel -DCMAKE_INSTALL_PREFIX=/home/guangyu/ego-planner/install -G Unix Makefiles" in "/home/guangyu/ego-planner/build" #### 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. -- Using CATKIN_DEVEL_PREFIX: /home/guangyu/ego-planner/devel -- Using CMAKE_PREFIX_PATH: /home/guangyu/ego-planner/devel -- This workspace overlays: /home/guangyu/ego-planner/devel -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3") -- Using PYTHON_EXECUTABLE: /usr/bin/python3 -- Using Debian Python package layout -- Using empy: /usr/lib/python3/dist-packages/em.py -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/guangyu/ego-planner/build/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python3 (found version "3.8.10") -- nosetests not found, Python tests can not be run (try installing package 'python3-nose') -- catkin 0.8.0 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 18 packages in topological order: -- ~~ - cmake_utils -- ~~ - map_generator -- ~~ - mockamap -- ~~ - plan_env -- ~~ - path_searching -- ~~ - bspline_opt -- ~~ - pose_utils -- ~~ - odom_visualization -- ~~ - quadrotor_msgs -- ~~ - local_sensing_node -- ~~ - multi_map_server -- ~~ - rviz_plugins -- ~~ - so3_control -- ~~ - traj_utils -- ~~ - ego_planner -- ~~ - uav_utils -- ~~ - so3_quadrotor_simulator -- ~~ - waypoint_generator -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'cmake_utils' -- ==> add_subdirectory(uav_simulator/Utils/cmake_utils) -- Could NOT find roscpp (missing: roscpp_DIR) -- Could not find the required component 'roscpp'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:82 (find_package): Could not find a package configuration file provided by "roscpp" with any of the following names: roscppConfig.cmake roscpp-config.cmake Add the installation prefix of "roscpp" to CMAKE_PREFIX_PATH or set "roscpp_DIR" to a directory containing one of the above files. If "roscpp" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): uav_simulator/Utils/cmake_utils/CMakeLists.txt:4 (find_package) -- Configuring incomplete, errors occurred! See also "/home/guangyu/ego-planner/build/CMakeFiles/CMakeOutput.log". See also "/home/guangyu/ego-planner/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed怎么错了
最新发布
11-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值