命令行如何在ubuntu中工作 [英] how does command-line works in ubuntu

查看:80
本文介绍了命令行如何在ubuntu中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


i初学者在ubuntu 12.04中,我不知道命令行是如何工作的?

i我试图安装open-cv 2.4。 3,但我有一些问题。



例如当我试图运行此代码时:

sudo apt-get install libpnglite -dev libpngwriter0-dev libpngwriter0c2



i收到此结果:



hi
i am beginner in ubuntu 12.04 and i dont know how command-line into it works?
i am trying to install open-cv 2.4.3 in it but i have some problems .

for example when i have tried to run this code :
sudo apt-get install libpnglite-dev libpngwriter0-dev libpngwriter0c2

i received this results :

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libpngwriter0-dev
E: Unable to locate package libpngwriter0c2





有什么问题?

i按照以下说明进行操作:

opencv.willowgarage.com/wiki/InstallGuide%3A Debian



一般来说我想知道如何使用命令行?

我该如何运行这些代码:





what is the problem?
i am doing it by following this instruction :
opencv.willowgarage.com/wiki/InstallGuide %3A Debian

Generally i want to know how i can use the command-line?
how should i run this codes :

cd ~/<my_working _directory> git clone https://github.com/Itseez/opencv.git





或我无法理解这条指令:



创建一个临时目录,我们将其表示为< cmake_binary_dir>,您要在其中放置生成的Makefile,项目文件以及目标文件和输出二进制文件。



输入< cmake_binary_dir>并键入





or i cant understand this instruction :

Create a temporary directory, which we denote as <cmake_binary_dir>, where you want to put the generated Makefiles, project files as well the object files and output binaries.

Enter the <cmake_binary_dir> and type

cmake [<some optional parameters>] <path to the OpenCV source directory>





例如



For example

cd ~/opencv mkdir release cd release cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
Enter the created temporary directory (<cmake_binary_dir>) and proceed with:
make sudo make install









任何人都可以解释我应该如何以及我应该在命令行中写什么?



i非常感谢他





may anyone explain that how i should and what i should write in command line?

i am very grateful to him

推荐答案

cd ~/opencv
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..

REM Enter the created temporary directory (<cmake_binary_dir>) and proceed with:

make sudo make install



我不知道是什么意思从 REM 开始的行,但可能意味着使用 cd 命令进入由<创建的某个临时目录code> cmake 命令。您应该返回此产品的文档并查看说明。如果你掌握了一本可以解释所有各种Linux命令及其选项的书,那也是值得花时间的。如果您希望成为Linux管理员/开发人员,那么您需要了解的东西。


I don''t know what is meant by the line beginning REM, but presumably it means to use the cd command to move into some temporary directory created by the cmake command. You should go back to the documentation for this product and check the instructions. It would also be time well spent if you get hold of a book that expalins all the various Linux commands and their options. Something that you will need to understand well if you wish to be a Linux administrator/developer.


这篇关于命令行如何在ubuntu中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆