bsd pkg install gcc gmake cmake gdb cgdb

安装pkg帮助文档并查看文档
# pkg help install
# man pkg-install

# pkg search // 搜索软件包
# pkg update // 更新本地pkg数据库
# pkg add ./pkg.txz // 安装本地软件包txz文件
# pkg info pkg // pkg安装版本信息
# pkg install packagename // 安装软件包
# pkg info // 已安装软件列表信息
# pkg delete curl // 删除指定的软件包
# pkg audit -F // 查看日志信息
# pkg autoremove // 删除已经不需要的依赖包
# pkg backup -d pkgng.db // 备份软件包
# pkg backup -r /path/to/pkgng.db // 删除备份软件包
# pkg clean // 清除多余的软件缓存包
# pkg set -o lang/php5:lang/php53 // 修改软件源
# pkg install -Rf graphics/freeglut // 安装指定的软件源

# setenv PACKAGESITE http://pkg.freebsd.org/FreeBSD:8:amd64/latest
#
# fetch ${PACKAGESITE}/Latest/pkg.txz
# fetch ${PACKAGESITE}/Latest/pkg.sig
# fetch ${PACKAGESITE}/Latest/pkg-devel.txz
#
# pkg help add
#
# pkg add ./pkg.txz
# pkg add -f ./pkg-devel.txz
#
# pkg help install
#
# pkg install wget
# pkg install curl
# pkg install tree
# pkg install xterm
# pkg install tmux
# pkg install vim
# pkg install gawk
# pkg install gsed
# pkg install nano
# pkg install bash
# pkg install bash-completion
# pkg install dbus
# pkg install git
# pkg install cmake
# pkg install gcc5
# pkg install gcc5-aux
# pkg install gcc5-devel
# pkg install gmake
# pkg install gdb
# pkg install cgdb
# pkg install valgrind
# pkg install perl
# pkg install bison
# pkg install m4
# pkg install automake
# pkg install autoconf
# pkg install ncurses
# pkg install libiconv

root@lsgxbsd8:~/opt # pkg install cmake
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100% 968 B 1.0kB/s 00:01
Fetching packagesite.txz: 100% 5 MiB 357.6kB/s 00:15
Processing entries: 100%
FreeBSD repository update completed. 24207 packages processed.
Updating database digests format: 100%
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked): Installed packages to be REINSTALLED:
pkg-1.5.5 (provided shared library changed) 2 MiB to be downloaded. Proceed with this action? [y/N]: y
Fetching pkg-1.5.5.txz: 100% 2 MiB 347.0kB/s 00:06
Checking integrity... done (0 conflicting)
[1/1] Reinstalling pkg-1.5.5...
You may need to manually remove /usr/local/etc/pkg.conf if it's no longer needed.
[1/1] Extracting pkg-1.5.5: 100%
Message for pkg-1.5.5:
If you are upgrading from the old package format, first run: # pkg2ng
Updating FreeBSD repository catalogue...
pkg: Unable to downgrade "FreeBSD" repo schema version 2012 (target version 2011) -- change not found
pkg: need to re-create repo FreeBSD to upgrade schema version
Fetching meta.txz: 100% 968 B 1.0kB/s 00:01
Fetching packagesite.txz: 100% 5 MiB 447.1kB/s 00:12
Processing entries: 100%
FreeBSD repository update completed. 24207 packages processed.
pkg: warning: database version 32 is newer than libpkg(3) version 31, but still compatible
The following 8 package(s) will be affected (of 0 checked): New packages to be INSTALLED:
cmake: 3.2.3_2
expat: 2.1.0_2
curl: 7.43.0_2
ca_root_nss: 3.19.2
jsoncpp: 0.6.0.r2_2
cmake-modules: 3.2.3
libarchive: 3.1.2_3,1
lzo2: 2.09 The process will require 30 MiB more space.
6 MiB to be downloaded. Proceed with this action? [y/N]: y
Fetching cmake-3.2.3_2.txz: 100% 3 MiB 416.1kB/s 00:09
Fetching expat-2.1.0_2.txz: 100% 99 KiB 101.9kB/s 00:01
Fetching curl-7.43.0_2.txz: 100% 1 MiB 478.2kB/s 00:03
Fetching ca_root_nss-3.19.2.txz: 100% 336 KiB 344.7kB/s 00:01
Fetching jsoncpp-0.6.0.r2_2.txz: 100% 103 KiB 106.0kB/s 00:01
Fetching cmake-modules-3.2.3.txz: 100% 504 KiB 516.6kB/s 00:01
Fetching libarchive-3.1.2_3,1.txz: 100% 597 KiB 611.5kB/s 00:01
Fetching lzo2-2.09.txz: 100% 89 KiB 91.5kB/s 00:01
Checking integrity... done (0 conflicting)
[1/8] Installing expat-2.1.0_2...
[1/8] Extracting expat-2.1.0_2: 100%
[2/8] Installing ca_root_nss-3.19.2...
[2/8] Extracting ca_root_nss-3.19.2: 100%
[3/8] Installing lzo2-2.09...
[3/8] Extracting lzo2-2.09: 100%
[4/8] Installing curl-7.43.0_2...
[4/8] Extracting curl-7.43.0_2: 100%
[5/8] Installing jsoncpp-0.6.0.r2_2...
[5/8] Extracting jsoncpp-0.6.0.r2_2: 100%
[6/8] Installing cmake-modules-3.2.3...
[6/8] Extracting cmake-modules-3.2.3: 100%
[7/8] Installing libarchive-3.1.2_3,1...
[7/8] Extracting libarchive-3.1.2_3,1: 100%
[8/8] Installing cmake-3.2.3_2...
[8/8] Extracting cmake-3.2.3_2: 100%
Message for ca_root_nss-3.19.2:
********************************* WARNING ********************************* FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance. Assessment and verification of trust is the complete responsibility of the
system administrator. *********************************** NOTE ********************************** This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL. This enables SSL Certificate Verification by client software without manual
intervention. If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle. * /etc/ssl/cert.pem
* /usr/local/etc/ssl/cert.pem
* /usr/local/openssl/cert.pem ***************************************************************************
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt # pkg install gcc5
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: warning: database version 32 is newer than libpkg(3) version 31, but still compatible
The following 9 package(s) will be affected (of 0 checked): New packages to be INSTALLED:
gcc5: 5.2.0
indexinfo: 0.2.3
mpfr: 3.1.2_2
gmp: 5.1.3_2
mpc: 1.0.3
gcc-ecj: 4.5
binutils: 2.25.1
gettext-runtime: 0.19.4
libiconv: 1.14_8 The process will require 452 MiB more space.
85 MiB to be downloaded. Proceed with this action? [y/N]: y
Fetching gcc5-5.2.0.txz: 100% 79 MiB 542.6kB/s 02:34
Fetching indexinfo-0.2.3.txz: 100% 4 KiB 4.8kB/s 00:01
Fetching mpfr-3.1.2_2.txz: 100% 342 KiB 351.1kB/s 00:01
Fetching gmp-5.1.3_2.txz: 100% 440 KiB 450.5kB/s 00:01
Fetching mpc-1.0.3.txz: 100% 79 KiB 81.3kB/s 00:01
Fetching gcc-ecj-4.5.txz: 100% 1 MiB 1.4MB/s 00:01
Fetching binutils-2.25.1.txz: 100% 3 MiB 288.8kB/s 00:12
Fetching gettext-runtime-0.19.4.txz: 100% 140 KiB 143.4kB/s 00:01
Fetching libiconv-1.14_8.txz: 100% 590 KiB 605.0kB/s 00:01
Checking integrity... done (0 conflicting)
[1/9] Installing indexinfo-0.2.3...
[1/9] Extracting indexinfo-0.2.3: 100%
[2/9] Installing gmp-5.1.3_2...
[2/9] Extracting gmp-5.1.3_2: 100%
[3/9] Installing libiconv-1.14_8...
[3/9] Extracting libiconv-1.14_8: 100%
[4/9] Installing mpfr-3.1.2_2...
[4/9] Extracting mpfr-3.1.2_2: 100%
[5/9] Installing gettext-runtime-0.19.4...
[5/9] Extracting gettext-runtime-0.19.4: 100%
[6/9] Installing mpc-1.0.3...
[6/9] Extracting mpc-1.0.3: 100%
[7/9] Installing gcc-ecj-4.5...
[7/9] Extracting gcc-ecj-4.5: 100%
[8/9] Installing binutils-2.25.1...
[8/9] Extracting binutils-2.25.1: 100%
[9/9] Installing gcc5-5.2.0...
[9/9] Extracting gcc5-5.2.0: 100%
Message for gcc5-5.2.0:
To ensure binaries built with this toolchain find appropriate versions
of the necessary run-time libraries, you may want to link using -Wl,-rpath=/usr/local/lib/gcc5 For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt # pkg install gcc5-aux
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: warning: database version 32 is newer than libpkg(3) version 31, but still compatible
The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED:
gcc5-aux: 20150716 The process will require 230 MiB more space.
46 MiB to be downloaded. Proceed with this action? [y/N]: y
Fetching gcc5-aux-20150716.txz: 100% 46 MiB 652.1kB/s 01:15
Checking integrity... done (0 conflicting)
[1/1] Installing gcc5-aux-20150716...
[1/1] Extracting gcc5-aux-20150716: 100%
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt # pkg install gcc5-devel
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: warning: database version 32 is newer than libpkg(3) version 31, but still compatible
The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED:
gcc5-devel: 5.2.1.s20150721 The process will require 413 MiB more space.
79 MiB to be downloaded. Proceed with this action? [y/N]: y
Fetching gcc5-devel-5.2.1.s20150721.txz: 100% 79 MiB 518.1kB/s 02:41
Checking integrity... done (1 conflicting)
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
The following 2 package(s) will be affected (of 0 checked): Installed packages to be REMOVED:
gcc5-5.2.0 New packages to be INSTALLED:
gcc5-devel: 5.2.1.s20150721 The process will require 142 KiB more space. Proceed with this action? [y/N]: y
[1/2] Deinstalling gcc5-5.2.0...
[1/2] Deleting files for gcc5-5.2.0: 100%
[2/2] Installing gcc5-devel-5.2.1.s20150721...
[2/2] Extracting gcc5-devel-5.2.1.s20150721: 100%
Message for gcc5-devel-5.2.1.s20150721:
To ensure binaries built with this toolchain find appropriate versions
of the necessary run-time libraries, you may want to link using -Wl,-rpath=/usr/local/lib/gcc5 For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt # pkg install gmake
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: warning: database version 32 is newer than libpkg(3) version 31, but still compatible
The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED:
gmake: 4.1_2 The process will require 1 MiB more space.
363 KiB to be downloaded. Proceed with this action? [y/N]: y
Fetching gmake-4.1_2.txz: 100% 363 KiB 372.5kB/s 00:01
Checking integrity... done (0 conflicting)
[1/1] Installing gmake-4.1_2...
[1/1] Extracting gmake-4.1_2: 100%
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt # pkg install gdb
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: warning: database version 32 is newer than libpkg(3) version 31, but still compatible
The following 2 package(s) will be affected (of 0 checked): New packages to be INSTALLED:
gdb: 7.9.1
readline: 6.3.8 The process will require 23 MiB more space.
4 MiB to be downloaded. Proceed with this action? [y/N]: Yy
Please type 'Y[es]' or 'N[o]' to make selection Proceed with this action? [y/N]: y
Fetching gdb-7.9.1.txz: 100% 3 MiB 389.1kB/s 00:10
Fetching readline-6.3.8.txz: 100% 303 KiB 310.7kB/s 00:01
Checking integrity... done (0 conflicting)
[1/2] Installing readline-6.3.8...
[1/2] Extracting readline-6.3.8: 100%
[2/2] Installing gdb-7.9.1...
[2/2] Extracting gdb-7.9.1: 100%
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt #
root@lsgxbsd8:~/opt # pkg install cgdb
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: warning: database version 32 is newer than libpkg(3) version 31, but still compatible
The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED:
cgdb: 0.6.8 The process will require 358 KiB more space.
94 KiB to be downloaded. Proceed with this action? [y/N]: y
Fetching cgdb-0.6.8.txz: 100% 94 KiB 97.0kB/s 00:01
Checking integrity... done (0 conflicting)
[1/1] Installing cgdb-0.6.8...
[1/1] Extracting cgdb-0.6.8: 100%
root@lsgxbsd8:~/opt #

============== End

bsd pkg install gcc gmake cmake gdb cgdb的更多相关文章

  1. eclipse下使用cygwin的方法(Windows下用eclipse玩gcc/g++和gdb)

    明天就回国了,今晚回国前写写如何配置eclipse和CDT.这个配置方法网上讨论不是很多,可能用的人少,毕竟Windows上写C++程序多数喜欢VS,即使写的是Linux程序,很多人仍然会用VS(说只 ...

  2. Linux——【转】gcc编译与gdb调试简要步骤

    原文:gcc编译与gdb调试简要步骤 一.Linux程序gcc编译步骤: Gcc编译过程主要的4个阶段: l 预处理阶段,完成宏定义和include文件展开等工作:(.i) l 根据编译参数进行不同程 ...

  3. install gcc under suse

    SUSE 11中安装GCC开发环境 SUSE11中安装GCC开发环境 安装包下载网站:http://213.174.32.130/sles/distribution/11.0-SP1/repo/dis ...

  4. Using OpenCV with gcc and CMake

    Using OpenCV with gcc and CMake Note We assume that you have successfully installed OpenCV in your w ...

  5. 【Linux】-NO.86.Linux.6.C.1.001-【CentOS 7 Install GCC】-

    1.0.0 Summary Tittle:[Linux]-NO.86.Linux.6.C.1.001-[CentOS 7 Install GCC]- Style:Java Series:Log4j S ...

  6. gcc编译, gdb调试, makefile写法

    //test.c: #include <stdio.h> int main(void) { printf("hello world!"); return 0; } == ...

  7. 在MacOS上使用gdb(cgdb)调试Golang程序

    如果你在MacOS上使用GDB工具载入Golang程序时无法载入,这篇文章可以解决.本文不具体介绍调试的方法,网上的文章太多了就不赘述了. cgdb使用的是gdb的内核,方法和原理试用本文. 问题分析 ...

  8. 非root源码安装gcc和cmake

    一.安装cmake 1.下载cmale 下载地址:https://cmake.org/files tar -zxvf cmake-3.19.8.tar.gz cd cmake-3.19.8/ ./co ...

  9. Linux环境下使用gcc编译,gdb反汇编C语言程序

    使用虚拟机 VMware Workstation 10 Linux环境:Ubuntu 14.04 LTS Server amd64   我把过程截图如下. 首先是hello world程序: 备注: ...

随机推荐

  1. Cobaltstrike与Metasploit会话转换

    这里只做记录,不做详解 0x00 实验环境 被控制机:192.168.126.129 Metasploit:192.168.126.128 Cobaltstrike:182...* 0x01 CS会话 ...

  2. 前后端通信—CORS(支持跨域)

    根据前端跨域的那些事这篇文章中的跨域的理解这一块,我们重新创建两个服务,第一个服务使用了test.html const http = require('http') const fs = requir ...

  3. NIO Channel Socket套接字相关Channel

    阻塞非阻塞: NIO中的Channel主要分为两大类:一类是FileChannel,另一类是SocketChannel.NIO提供的核心非阻塞特性主要针对SocketChannel类,全部socket ...

  4. 剑指offer:数组中的逆序对

    题目描述: 在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对.输入一个数组,求出这个数组中的逆序对的总数P.并将P对1000000007取模的结果输出. 即输出P%100 ...

  5. RocketMQ集群安装 2主2从 console

    安装zip和mavenyum install -y unzip zip wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel ...

  6. Java_jdbc 基础笔记之十四 数据库连接(元数据)数据库信息及连接信息

    public class MetaDatatest { /** * DatabaseMetaData 是描述 数据库的元数据对象 可以由Connection得到 */ @Test public voi ...

  7. 一款阿里开源的 Java 诊断工具

    Arthas是什么鬼? Arthas是一款阿里巴巴开源的 Java 线上诊断工具,功能非常强大,可以解决很多线上不方便解决的问题. Arthas诊断使用的是命令行交互模式,支持JDK6+,Linux. ...

  8. zk集群部署

    一.环境准备 当前环境:centos7.3三台软件版本:zookeeper-3.5.2部署目录:/usr/local/zookeeper启动端口:2181配置文件:/usr/local/zookeep ...

  9. ISO/IEC 9899:2011 条款5——环境

    5.环境 1.一个实现在两个不同的数据处理系统环境下分别翻译C源文件与执行C程序,在本国际标准中分别称为翻译环境和执行环境.它们的特征定义并包含了根据顺从标准实现的语法及语义规则所构造的顺从标准的C程 ...

  10. git 如何同步本地tag与远程tag

    问题场景:同事A在本地创建tagA并push同步到了远程->同事B在本地拉取了远程tagA(git fetch)->同事A工作需要将远程标签tagA删除->同事B用git fetch ...