随笔分类 -  Linux

摘要:安装 10.10 默认安装tool安装GCC方法:sudoapt-getinstallbuild-essential进入根目录 cd ..-> cd .. ->ls 查看$ gcc -Wall hello.c -o hello如果出现不能写,就该写权限 chmod a+r+w 文件名生成可执行二进制文件./可执行文件 阅读全文

posted @ 2011-12-29 23:15 无忧consume 阅读(107) 评论(0) 推荐(0) |

摘要:Ubuntu常用命令与技巧sudo apt-get install 软件名 安装软件命令sudo nautilus 打开文件(有root权限)su root 切换到“root”ls 列出当前目录文件(不包括隐含文件)ls -a 列出当前目录文件(包括隐含文件)ls -l 列出当前目录下文件的详细信息cd .. 回当前目录的上一级目录cd - 回上一次所在的目录cd ~ 或 cd 回当前用户的宿主目录mkdir 目录名 创建一个目录rmdir 空目录名 删除一个空目录rm 文件名 文件名 删除一个文件或多个文件rm -rf 非空目录名 删除一个非空目录下的一切mv 路经/文件 /经/文件 移动相 阅读全文

posted @ 2011-12-29 22:27 无忧consume 阅读(129) 评论(0) 推荐(0) |

摘要:ubuntu创建、删除文件及文件夹,强制清空回收站方法mkdir目录名创建一个目录rmdir空目录名删除一个空目录rm文件名文件名删除一个文件或多个文件rm -rf非空目录名删除一个非空目录下的一切touch文件名创建一个空文件重命名文件夹echWeb-技术社区5].O"?8H.I执行格式: mv source destinationExample:mv file1 file2 将文件 file1,更改文件名为 file2。 mv file1 dir1 将文件 file1,移到目录 dir1下,文件名仍为 file1。 mv dir1 dir2 若目录 dir2 存在,则将目录 di 阅读全文

posted @ 2011-12-29 22:25 无忧consume 阅读(187) 评论(0) 推荐(0) |

摘要:虚拟机ubuntu10.10与xp共享文件夹(samba服务模式)环境:主机windows xp系统,虚拟机vmware 7.1.3,虚拟机中安装了ubuntu10.10。需求:希望在xp中用source insight编辑工程,然后在ubuntu下编译,省去来回拷贝代码。因此需要在虚拟机和xp系统中共享工程。问题:用Vmware tools能在xp和ubuntu中共享文件,编译不能通过,提示“creating symbolic link "include/asm" "operation not supported"”。而是用samba可实现上述功能,具 阅读全文

posted @ 2011-12-29 12:53 无忧consume 阅读(278) 评论(0) 推荐(0) |

摘要:关于虚拟机 提示的 Cannot connect virtual device floppy0. 软驱(无法连接虚拟设备floppy0.No)Cannot connect virtual device floppy0.No corresponding device is available on the host.Whold you like an attempt to be made to connect this virtual device every time you power on the virtual machine?就是无法连接虚拟设备floppy0.No怎么解决 呢!见下图 阅读全文

posted @ 2011-12-29 11:21 无忧consume 阅读(234) 评论(0) 推荐(0) |

摘要:Ubuntu下gcc安装及使用在Ubuntu下安装GCC和其他一些Linux系统有点不一样。方法一:该方法超简单:sudoapt-getbuild-depgcc就上面这条命令就可以搞定方法二:sudoapt-getinstallbuild-essential还是简单,一句命令也可以搞定安装完了可以执行gcc--version的命令来查看版本,输出如下:gcc(GCC)4.2.3(Ubuntu4.2.3-2ubuntu7)Copyright(C)2007FreeSoftwareFoundation,Inc.编译则使用gcc命令。要往下学习首先就得熟悉gcc命令的用法。gcc命令提供了非常多的命令 阅读全文

posted @ 2011-12-29 01:23 无忧consume 阅读(176) 评论(0) 推荐(0) |

摘要:GMP install error: No usable m4 in $PATH or /usr/5binInstall error.Error descriptionOperating system:Ubuntu10.04 LTS Lucid LynxDownloaded theGMPsource code, version 5.0.1. Extracted the files. Started 'configure':richel@richel1-desktop:~/Downloads/gmp-5.0.1$ ./configureScreen output:checking 阅读全文

posted @ 2011-12-10 05:01 无忧consume 阅读(6783) 评论(0) 推荐(0) |

摘要:linux菜鸟opensuse在安装完后,要在开始-计算机-install/remove software中安装上gcc(搜索一下),要有自己GCC编译器才可以继续首先需要准备需要材料:gcc4.4.2版需要安装gmp4.2.0+和mpfr2.3.0+,到GMP的网站(http://gmplib.org/)上下载gmp-4.3.1.tar.gz 和mprf的网站(http://www.mpfr.org/)上下载mpfr-2.4.2.tar.gz分别解压缩tar zxvf gmp-4.3.1.tar.gztar zxvf mpfr-2.4.2.tar.gz解压之后, 文件夹名称为gmp-4.3. 阅读全文

posted @ 2011-12-10 04:41 无忧consume 阅读(193) 评论(0) 推荐(0) |

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3