linux下配置subversion
软件包:
httpd-2.23
下载地址
http://apache.justdn.org/httpd/httpd-2.2.3.tar.gz
apr-1.27
apr-util-1.27
http://apache.justdn.org/apr/,版号自已找,最好和我的所提供的版本号一样
Oracle Berkeley DB 4.0.14
下载地址
http://download.oracle.com/berkeley-db/db-4.0.14.tar.gz
subversion-1.4.0
下载地址
http://www.iusesvn.com/bbs/download/subversion-1.4.0.tar.gz
首先安装Berkeley DB 4.0.14
# tar zxvf db-4.0.14.tar.gz
# cd db-4.0.14/build_unix
# ../dist/configure --prefix=/usr/local/db-4.0.14 --enable-compat185
# make
# make install
安装apr,apr-util
# tar zxvf apr-1.2.7.tar.gz
# cd apr-1.2.7
# ./configure --prefix=/usr/local/apr
# make
# make install
# tar zxvf apr-util-1.2.7.tar.gz
# cd apr-util-1.2.7
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr --with-berkeley-db=/usr/local/db-4.0.14/
# make
# make install
安装apache
# tar zxvf httpd-2.2.3.tar.gz
# cd httpd-2.2.3
# ./configure --prefix=/usr/local/apache --enable-so --enable-rewrite=share --enable-proxy=share --enable-proxy-ajp=share --enable-dav=share --enable-dav-fs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/
# make
# make install
安装subversion
# tar zxvf subversion-1.4.0.tar.gz
# cd subversion-1.4.0
# ./configure --prefix=/opt/subversion --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-berkeley-db=/usr/local/db-4.0.14/ --with-ssl
# make
# make install
创建库文件所在的目录
# mkdir -p /home/svnroot/repository
进入subversion的bin目录
# cd /usr/local/subversion/bin
创建仓库"test"
# ./svnadmin create /home/svnroot/repository/test
# cd /home/svnroot/repository/test
看看是不是多了些文件,如果是则说明Subversion安装成功了
# ls –l
# cd /opt/subversion/bin
这条语句将把路径/home/user/import下找到的文件导入到你创建的Subversion仓库中去,
提交后的修订版为1。
# ./svn import –m "注释" /home/user/import file:///home/svnroot/repository/test
修改仓库的权限
# chown -R daemon:daemon
相关文档:
1. 关于/etc/host,主机名和IP配置文件
Hosts - The static table lookup for host name(主机名查询静态表)
Linux 的/etc/hosts是配置ip地址和其对应主机名的文件,这里可以记录本机的或其他主机的ip及其对应主机名。不同的linux版本,这个配置文件也可能不同。比如Debian的对应文件是/etc/hostname。
2. 配置文件 ......
GCC 支持了许多不同的语言,包括 C、C++、Ada、Fortran、Objective C,Perl、Python 和 Ruby,甚至还有Java。
Linux 内核和许多其他自由软件以及开放源码应用程序都是用 C 语言编写并使用 GCC 编译的。
编译C++程序:
-c 只编译不连接
g++ file1 -c -o file1.o
g++ file2 -c -o file2.o
g++ f ......
4)链接阶段
(Link)
在成功编译之后,就进入了链接阶段。
无选项链接
用法:[root]# gcc hello.o –o hello.exe
作用:将编译输出文件hello.o链接成最终可执行文件hello.exe。
[root]# ls
hello.c hello.exe hello.i hello.o hello.s
运行该可执行文件,出现正确的结果如下。
[roo ......
在Linux系统中,每台设备都是当成一个文件夹来对待。
设备 &nbs ......
系统
# uname -a # 查看内核/操作系统/CPU信息
# head -n 1 /etc/issue # 查看操作系统版本
# cat /proc/cpuinfo # 查看CPU信息
# hostname # 查看计算机名
# lspci -tv # 列出所有PCI设备
# lsusb -tv # 列出所有USB设备
# lsmod # ......