AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-257420

glaucon's questions

Martin Hope
glaucon
Asked: 2024-06-09 06:49:05 +0800 CST

UBUNTU_CODENAME 和/或 VERSION_CODENAME 来自哪里?

  • 7

在这些安装 Docker Engine https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository的说明中,提供了一个示例脚本,其下方有注释“如果您使用 Ubuntu 衍生发行版,例如 Linux Mint,则可能需要使用 UBUNTU_CODENAME 而不是 VERSION_CODENAME。 ”。

当我使用 Xubuntu 时,我想也许我需要更改脚本以使用 UBUNTU_CODENAME 但当我尝试时echo $UBUNTU_CODENAME,echo $VERSION_CODENAME两者都没有输出。

这些环境变量是否需要以某种方式初始化?

在此处输入图片描述

xubuntu
  • 1 个回答
  • 493 Views
Martin Hope
glaucon
Asked: 2021-11-17 01:46:48 +0800 CST

在 Ubuntu 20.04 上安装 Watchman 时出错

  • 1

尝试在全新安装的 Ubuntu 20.04 上安装 Watchman for React Native。

我正在使用以下步骤(但如果有更好的方法 - 或者如果你可以完全避免使用 Watchman,我很想听听)......

  git clone https://github.com/facebook/watchman.git -b v4.9.0 --depth 1
  cd watchman/
  git checkout 
  ./autogen.sh
  ./configure --without-python --without-pcre --enable-lenient
  make

我在“制作”步骤中收到如下所示的错误。

我已经看到了许多与构建守望者相关 的 问题,但我还没有看到这种情况。

tests/integration/cppclient.cpp: In function ‘int main(int, char**)’:
tests/integration/cppclient.cpp:114:12: error: ‘TimedOut’ does not name a type
  114 |    } catch(TimedOut& e) {
      |            ^~~~~~~~
tests/integration/cppclient.cpp:120:12: error: ‘TimedOut’ does not name a type
  120 |    } catch(TimedOut& e) {
      |            ^~~~~~~~
tests/integration/cppclient.cpp:25:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
   25 |   system("rm -f hit");
      |   ~~~~~~^~~~~~~~~~~~~
tests/integration/cppclient.cpp:75:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
   75 |   system("touch hit");
      |   ~~~~~~^~~~~~~~~~~~~
tests/integration/cppclient.cpp:88:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
   88 |   system("rm hit");
      |   ~~~~~~^~~~~~~~~~
make[1]: *** [Makefile:2766: tests/integration/cppclient_t-cppclient.o] Error 1
make[1]: Leaving directory '/home/rshea/src/watchman'
make: *** [Makefile:1264: all] Error 2
20.04
  • 1 个回答
  • 223 Views
Martin Hope
glaucon
Asked: 2018-01-08 16:23:16 +0800 CST

当我“制作”Python 时,为什么我没有得到一个“bin”目录(或者“为什么这些指令不再起作用”?)

  • 1

什么

我已经安装了 Python 3.4.3,但我想不打扰它,而是使用说明安装 Python 3 的另一个副本(即 Python 3.6)。

我在这里遵循说明的第二部分:https ://askubuntu.com/a/680828/257420 。具体来说,我正在下载一个 Python 版本并将其构建在 /opt 目录中。

当我执行“make”时,一切似乎都运行良好,但是在运行 make 后,/opt/Python-3.6.4我希望找到一个/opt/Python-3.6.4/bin/并且没有这样的目录。

所以?

鉴于我没有,bin我认为 make 失败了?还是我应该在其他地方寻找,bin因为自从我所遵循的答案被写出来以来,时代已经发生了变化?

环境

我正在尝试构建 Python 3.6.4(https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz)。

这是我的环境

glaucon@polo ~ $ inxi -S
System:    Host: polo Kernel: 3.13.0-37-generic x86_64 (64 bit) Console: tty 4 Distro: Linux Mint 17.1 Rebecca

编辑:我刚刚完成了一个

find / -name "python3"

而作为 root 并且没有 (for example) 的迹象python3.6。


EDIT2 这是后续调用中“make”的输出

polo Python-3.6.4 # make
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2                  _lzma                 _tkinter
To find the necessary bits, look in setup.py in detect_modules() for the module's name.

The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
atexit                pwd                   time
running build_scripts
copying and adjusting /opt/Python-3.6.4/Tools/scripts/pydoc3 -> build/scripts-3.6
copying and adjusting /opt/Python-3.6.4/Tools/scripts/idle3 -> build/scripts-3.6
copying and adjusting /opt/Python-3.6.4/Tools/scripts/2to3 -> build/scripts-3.6
copying and adjusting /opt/Python-3.6.4/Tools/scripts/pyvenv -> build/scripts-3.6
changing mode of build/scripts-3.6/pydoc3 from 644 to 755
changing mode of build/scripts-3.6/idle3 from 644 to 755
changing mode of build/scripts-3.6/2to3 from 644 to 755
changing mode of build/scripts-3.6/pyvenv from 644 to 755
renaming build/scripts-3.6/pydoc3 to build/scripts-3.6/pydoc3.6
renaming build/scripts-3.6/idle3 to build/scripts-3.6/idle3.6
renaming build/scripts-3.6/2to3 to build/scripts-3.6/2to3-3.6
renaming build/scripts-3.6/pyvenv to build/scripts-3.6/pyvenv-3.6

不幸的是,第一次调用“make”的输出丢失了,而且有很大的不同。一旦我很高兴我第一次尝试“make”完全没用,我将删除/opt/Python3.6.4目录并在捕获输出时重复“make”。

EDIT3 根据@unixpower 的信息,我做了一个“make clean”,然后是一个“make”,该命令的输出在以下位置可见: https ://pastebin.com/Bq04MXA0 。

不幸的是,仍然没有/opt/Python-3.6.4/bin. 只是为了混淆问题,但是我几乎可以肯定,“make”输出在我第一次使用它时完成的某个地方与上次不同!

欢迎任何意见。

software-installation
  • 1 个回答
  • 791 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve