我正在尝试将命令的标准退出状态保存在我的 makefile 的变量中,但我不知道该怎么做。
我试过这个:
pruebas:
@A= $(ls)
Run Code Online (Sandbox Code Playgroud)
......但它不起作用。
我正在尝试根据这些说明编译 freetds:http : //www.mavrick.id.au/2012/php-5-3-6-mssql-freetds/
但是配置失败。我的命令是:
./configure --enable-msdblib -–prefix=/usr/local/freetds
Run Code Online (Sandbox Code Playgroud)
我越来越
configure: error: unrecognized option: `-–prefix=/usr/local/freetds'
Try `./configure --help' for more information.
Run Code Online (Sandbox Code Playgroud)
对于所有命令行选项,甚至 --help
我已经安装了 build-essentials、gcc 和 make。我也试过 sudo,即使我以 root 身份登录。在我看来还缺少什么?
从他们的 github 存储库克隆、构建和安装 Rust 后,我发现它在我的系统上占用了 ~2.8 GB。我的机器上的空间相对有限(100GB),所以我想知道两件事:
make install(或sudo make install)后运行是否make clean影响已安装的程序(一般情况下或特别是生锈)?make clean甚至是恢复的存储空间的有效方法; 无论是在这种情况下,还是在一般情况下?https://github.com/laazyboy13/linux-csgo-external/issues/6 如何让它找到 libx11-dev?
william@william-elementarylinux:~/csgohack$ make
Linking CXX executable build/csgo_external
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make[2]: *** [build/csgo_external] Error 1
make[1]: *** [CMakeFiles/csgo_external.dir/all] Error 2
make: *** [all] Error 2
william@william-elementarylinux:~/csgohack$ ld -lX11 --verbose
GNU ld (GNU Binutils for Ubuntu) 2.24
Supported emulations:
elf_x86_64
elf32_x86_64
elf_i386
i386linux
elf_l1om
elf_k1om
i386pep
i386pe
using internal linker script:
==================================================
/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64",
"elf64-x86-64")
OUTPUT_ARCH(i386:x86-64)
ENTRY(_start)
SEARCH_DIR("/usr/x86_64-linux-gnu/lib64"); SEARCH_DIR("=/usr/local/lib/x86_64-linux-gnu"); SEARCH_DIR("=/usr/local/lib64"); …Run Code Online (Sandbox Code Playgroud) 我正在尝试为在 CUDA 中实现的神经网络构建这个 repo。
我已按照该链接中的说明操作,并在 shell 上执行了以下操作:
git clone https://github.com/ANNetGPGPU/ANNetGPGPU.git
cd ANNetGPGPU
mkdir build
cd build
cmake .. && make
Run Code Online (Sandbox Code Playgroud)
但是,当我写最后一行时,返回以下错误:
CMake Error at /home/iibm/Documents/martins/cmake-3.12.1-Linux-x86_64/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Call Stack (most recent call first):
/home/iibm/Documents/martins/cmake-3.12.1-Linux-x86_64/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/home/iibm/Documents/martins/cmake-3.12.1-Linux-x86_64/share/cmake-3.12/Modules/FindBZip2.cmake:62 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:7 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/home/iibm/Documents/martins/ANNetGPGPU/build/CMakeFiles/CMakeOutput.log".
Run Code Online (Sandbox Code Playgroud)
但是 bzip2 肯定已安装,bzip2 --version返回:
bzip2, a block-sorting file compressor. Version 1.0.6, 6-Sept-2010.
Copyright (C) 1996-2010 by Julian Seward.
Run Code Online (Sandbox Code Playgroud)
那么我该如何解决这个问题,为什么会发生呢?
我正在编译erld,一个将 Erlang 程序作为 UNIX 守护进程运行的程序,请参阅
https://github.com/ShoreTel-Inc/erld/wiki
我遵循的制作说明在这里:
https://github.com/ShoreTel-Inc/erld/blob/master/README
在make步骤中间有一个错误:
In file included from slay.c:25:0:
debug.h:41:6: warning: conflicting types for built-in
function ‘log’ [enabled by default]
slay.c:29:45: fatal error: proc/readproc.h: No such file or directory
compilation terminated.
make[1]: *** [erld-slay.o] Error 1
make[1]: Leaving directory `/home/ad/erld/c_src'
make: *** [all-recursive] Error 1
Run Code Online (Sandbox Code Playgroud)
这是 ubuntu 12.04 服务器 64:
$ uname -a
Linux lfe1 3.2.0-26-virtual #41-Ubuntu SMP Thu Jun 14 18:08:54 UTC 2012
x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
我无法在这个问题中添加标签“erlang”。也许分数多的人可以做到。
我在 Xubuntu 16.04.1,make版本为 4.1。我对这个版本有一些怀疑,想暂时安装旧版本(3.81),它在另一台旧机器上与我的包一起工作正常。
最安全的方法是什么?我不想破坏任何东西,只想运行旧版本几次。
Making all in doc
make[1]: Entering directory `/home/enas/Desktop/speedos-0.2.0/speedos/doc'
make[2]: Entering directory `/home/enas/Desktop/speedos-0.2.0/speedos'
make[2]: Leaving directory `/home/enas/Desktop/speedos-0.2.0/speedos'
make[2]: Entering directory `/home/enas/Desktop/speedos-0.2.0/speedos'
make[2]: Leaving directory `/home/enas/Desktop/speedos-0.2.0/speedos'
Making all in thesis
make[2]: Entering directory `/home/enas/Desktop/speedos-0.2.0/speedos/doc/thesis'
make[3]: Entering directory `/home/enas/Desktop/speedos-0.2.0/speedos'
make[3]: Leaving directory `/home/enas/Desktop/speedos-0.2.0/speedos'
make[3]: Entering directory `/home/enas/Desktop/speedos-0.2.0/speedos'
make[3]: Leaving directory `/home/enas/Desktop/speedos-0.2.0/speedos'
fig2dev -L pstex_t -p virtmem_half virtmem_half.fig virtmem_half.inc
/bin/bash: fig2dev: command not found
make[2]: *** [virtmem_half.inc] Error 127
make[2]: Leaving directory `/home/enas/Desktop/speedos-0.2.0/speedos/doc/thesis'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/enas/Desktop/speedos-0.2.0/speedos/doc'
make: *** …Run Code Online (Sandbox Code Playgroud)