小编osa*_*ama的帖子

如何复制和粘贴文件?

我想复制并粘贴一个文件。该文件的名称是mkoctfile.m.
这个文件的路径是:

/usr/share/octave/3.2.4/m/miscellaneous/mkoctfile.m

我想将其粘贴到以下路径

/usr/bin/mkoctfile-3.2.4

我使用以下命令创建了目录:

sudo su mkdir -p /usr/bin/mkoctfile-3.2.4

但我不知道如何mkoctfile.m在此路径中复制和粘贴。

请告诉我必须使用什么命令。

command-line gnome-terminal

28
推荐指数
1
解决办法
27万
查看次数

“致命错误:gtk/gtk.h:没有这样的文件或目录”使用 make

我正在尝试使用 make 命令来构建。我正在关注这个。我正在使用 GTK+2 和 C 语言编译代码

hp@ubuntu:~/amhello$ make
make  all-recursive
make[1]: Entering directory `/home/hp/amhello'
Making all in src
make[2]: Entering directory `/home/hp/amhello/src'
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o         main.o main.c
main.c:3:20: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/hp/amhello/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hp/amhello'
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)

这是 main.c 代码

#include<config.h>
#include<stdio.h> …
Run Code Online (Sandbox Code Playgroud)

compiling gtk make

27
推荐指数
2
解决办法
12万
查看次数

运行 make install 时权限被拒绝

我正在尝试安装 gtk-server。首先我输入命令./configure,然后输入make,但是当我输入命令时,make install它给了我这个错误:

osama@osama-HP-Compaq-6910p:~/Downloads/gtk-server-2.3.1-sr$ make install
/usr/bin/install: cannot create regular file `/usr/local/bin/gtk-server': Permission denied
mkdir -p /usr/local/bin
/usr/bin/install -c gtk-server /usr/local/bin
/usr/bin/install -c stop-gtk-server /usr/local/bin
/usr/bin/install: cannot create regular file `/usr/local/bin/stop-gtk-server': Permission denied
make: *** [install] Error 1
Run Code Online (Sandbox Code Playgroud)

install-from-source

19
推荐指数
1
解决办法
11万
查看次数