我正在尝试使用“make”命令安装某些东西,但是它给了我致命错误:tcl.h 没有这样的文件或目录。我是 linux 新手,有人可以帮助我吗?
我是编译的新手。我正在安装FFmpeg,并且在每一步之后都有一个make distclean(或曾经有过make clean)。它有什么作用?
我在 Makefile 中有下一个代码:
CFLAGS=-Wall -g
clean:
rm -f ex1
Run Code Online (Sandbox Code Playgroud)
当我运行“make clean”时,我收到下一个错误:Makefile:4: * missing separator。停止。
为什么?我该如何解决?
我刚刚下载并安装了最新版本的 Ubuntu 18.04(ISO 是 ubuntu-18.04-desktop-amd64.iso)。我注意到默认情况下没有安装任何开发工具(git、gcc、g++、make)。是否有安装了常用开发工具的发行版的开发人员 ISO,还是我必须手动安装所有这些?
我有带有处理器“Intel® Core™2 Duo CPU E8400 @ 3.00GHz × 2”的 Ubuntu 13.04
我正在尝试安装,mpfr-3.1.2但错误即将到来。
"ERROR! The versions of gmp.h (5.1.3) and libgmp (5.0.5) do not match."
Run Code Online (Sandbox Code Playgroud)
在make命令中,它也将其显示为警告。
如何解决?
我正在尝试设置 ATLAS(以便我以后可以使用 ATLAS 支持编译八度音阶)。
如果我是对的,由于环境特定的优化,我仍然需要手动构建它。我确实看到了一个 ATLAS 包,但它看起来像是使用跨平台通用构建选项(例如“它会很慢”)。
因此,按照文档中的描述运行配置脚本似乎效果不佳。作为一名 Java 开发人员,我从来不擅长在这些构建过程中制造错误。我是否缺少依赖项(如果是,是否有任何关于我需要的文档)?
allusers@vbubuntu:~/Downloads/atlas3.10.1/build_vbubuntu$ ../configure -b 64 -D c -DPentiumCPS=3000 --with-netlib-lapack-tarfile=/home/allusers/Downloads/lapack-3.5.0.tgz
make: `xconfig' is up to date.
./xconfig -d s /home/allusers/Downloads/atlas3.10.1/build_vbubuntu/../ -d b /home/allusers/Downloads/atlas3.10.1/build_vbubuntu -b 64 -D c -DPentiumCPS=3000 -Si lapackref 1
OS configured as Linux (1)
Assembly configured as GAS_x8664 (2)
Vector ISA Extension configured as SSE3 (6,448)
ERROR: enum fam=3, chip=2, mach=0
make[3]: *** [atlas_run] Error 44
make[2]: *** [IRunArchInfo_x86] Error 2
Architecture configured as Corei1 (25)
ERROR: enum …Run Code Online (Sandbox Code Playgroud) 我在尝试使用make命令时遇到问题。
我无法运行 Make 命令。
信息: bash: make: command not found
当我使用
sudo apt-get remove make
sudo apt-get install make
Run Code Online (Sandbox Code Playgroud)
或与
sudo apt-get install --reinstall make
Run Code Online (Sandbox Code Playgroud)
表明
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package make is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'make' has no installation candidate
Run Code Online (Sandbox Code Playgroud) 总结:什么是“usb.h”?
扩展:对 Ubuntu 来说非常新。安装我想要的软件(GNU-RADIO 和 GNSS-SDR)。
在尝试将某个硬件(SiGe GN3S Sampler v2 usb 设备)配置为软件的 RF 前端时,我收到以下错误:
dsradin@dsradin-HP-Pavilion-dv6-Notebook-PC:~/gnss-sdr/drivers/gr-gn3s/build$ make
Scanning dependencies of target gr-gn3s
[ 6%] Building CXX object lib/CMakeFiles/gr-gn3s.dir/gn3s_source_cc.cc.o
In file included from /home/dsradin/gnss-sdr/drivers/gr-gn3s/include/fusb.h:26:0,
from /home/dsradin/gnss-sdr/drivers/gr-gn3s/include/gn3s.h:40,
from /home/dsradin/gnss-sdr/drivers/gr-gn3s/include/gn3s_source.h:30,
from /home/dsradin/gnss-sdr/drivers/gr-gn3s/include/gn3s_source_cc.h:35,
from /home/dsradin/gnss-sdr/drivers/gr-gn3s/lib/gn3s_source_cc.cc:34:
/home/dsradin/gnss-sdr/drivers/gr-gn3s/include/libusb_types.h:32:17: fatal error: usb.h: No such file or directory
#include <usb.h>
^
compilation terminated.
make[2]: *** [lib/CMakeFiles/gr-gn3s.dir/gn3s_source_cc.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gr-gn3s.dir/all] Error 2
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)
我尝试通过系统查找文件,但没有任何乐趣:
dsradin@dsradin-HP-Pavilion-dv6-Notebook-PC:~/gnss-sdr/drivers/gr-gn3s/build$ whereis usb.h
usb:
dsradin@dsradin-HP-Pavilion-dv6-Notebook-PC:~/gnss-sdr/drivers/gr-gn3s/build$ whereis …Run Code Online (Sandbox Code Playgroud) 我目前正在尝试安装 gcc 4.8.1。当前安装了 4.8.2 和 4.9.1。我从这里下载了 4.8.1 http://gcc.cybermirror.org/releases/gcc-4.8.1/。提取文件后,我做了一个./configure然后尝试了make. 最后make,我收到此错误
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
#include <asm/errno.h>
Run Code Online (Sandbox Code Playgroud)
我是 linux 新手,所以我不知道如何查找或添加这个头文件。
编辑:我做的步骤:
cd gcc-4.8.1./configure --build=x86_64-linux-gnumake -j4我不知道我做了什么不同的事情,但它终于编译了。之后我确实进行了安装。我现在的问题是如何使用它而不是使用命令 gcc-4.8 仍然默认使用的 4.8.2。
对于我在互联网上搜索的解决方案。我添加的命令的输出
pkg-config --cflags glib-2.0
是-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include到像生成文件
GCC = -I的/ usr /包括/油嘴-2.0 -I / usr / lib中/ I386-Linux的GNU /油嘴-2.0 /包括-lglib-2.0
but still an error glib.h: No such file or directory
Run Code Online (Sandbox Code Playgroud)
这是我的制作文件
ROOTDIR = $(CURDIR)
#-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include include makefiles/platforms.mk
ZLIBDIRS = zlibrary/core zlibrary/text zlibrary/ui APPDIRS = fbreader GCC = -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include -lglib-2.0
#gcc -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include
#gcc pkg-config --cflags --libs glib-2.0 all: @for dir in $(ZLIBDIRS) $(APPDIRS); do \ if [ -d $$dir ]; then \ cd $$dir; \ if ! …Run Code Online (Sandbox Code Playgroud)