免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 50299 | 回复: 2
打印 上一主题 下一主题

HP-UX下安装SubVersion [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-03 19:01 |只看该作者 |倒序浏览
HP-UX下安装SVN
在下述网站可以下载SVN代码以及编译SVN所需的各种库,找到你相应的平台然后下载安装即可
http://hpux.cs.utah.edu/
基本上编译运行SVN需要
apr apr_util bzip2 db expat gdbm gettext libiconv make ncurses neon openssl perl python readline zlib
如果你没装哪个的话就下载哪个吧。
然后下载SVN代码,该网站上也有编译好的depot,但是似乎没有编译apache模块,只能使用svn server模式,所以我还是下载代码编译的。
编译很简单,
进入代码路径
# ./configure --with-apxs=/opt/hpws/apache/bin/apxs
如果没有指定 --with-apxs,那么不会生成apache模块
其中/opt/hpws/apache是HP整合了的apache server,所以不需要再单独安装apache了。
然后
#gmake
#gmake install
如果过程报错,说找不着某个库,大部分是因为configure时没有指定库路径,缺省找/usr/local了,我懒得重新改,直接看缺哪个库就直接把/usr/lib下对应的库链接到/usr/local/lib下。
装完之后修改/opt/hpws/apache/conf/httpd.conf,添加
#add for SVN
DAV svn
SVNPath /home/svnroot
然后执行命令创建对应的仓库
#svnadmin create /home/svnroot
修改一下目录权限,以保证通过apache可以读写
#chown -R www /home/svnroot   
其中www是apache的用户
然后重起apache
#/opt/hpws/apache/bin/apachectl restart
就可以访问了,通过浏览器输入http://主机名/svn即可访问
此时是匿名访问,任何用户都可以访问。
如果想加权限,可以通过apache的htpasswd命令来创建用户,
第一次创建用户用
#/opt/hpws/apache/bin/htpasswd -c /home/svnroot/svn_passwd 用户名
/home/svnroot/svn_passwd 是你想放密码文件的位置
添加用户的话
#/opt/hpws/apache/bin/htpasswd -m /home/svnroot/svn_passwd 用户名
然后修改httpd.conf为
DAV svn
SVNPath /home/svnroot
AuthType Basic
AuthName "Subversion repository"
AuthUserFile "/home/svnroot/svn_passwd"
Require valid-user
之后重起apache,再访问时就得输用户密码了。



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17004/showart_725131.html

论坛徽章:
0
2 [报告]
发表于 2014-04-25 11:25 |只看该作者
我在gmake时遇到错误
(Bundled) cc: warning 922: "-b" is unsupported in the bundled compiler, ignored.
ld: Unknown input file type: "../../subversion/libsvn_subr/.libs/libsvn_subr-1.so"
Fatal error.
build-outputs.mk:311: recipe for target 'subversion/libsvn_delta/libsvn_delta-1.la' failed
gmake: *** [subversion/libsvn_delta/libsvn_delta-1.la] Error 1

configure命令:
./configure --with-apxs=/opt/hpws22/apache/bin/apxs  --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config --with-zlib=/opt/gtk2.6

这是SVN代码问题吗,我是从https://subversion.apache.org/download/上下载的。

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
3 [报告]
发表于 2014-05-23 17:14 |只看该作者
本帖最后由 lbseraph 于 2014-05-23 17:15 编辑

回复 2# LimSai

参考http://chess.eecs.berkeley.edu/ptexternal/wiki/Main/Subversion,估计类似,你可以尝试一下(如果不行,最好检查一下官方安装说明的要求):
The link was failing in subversion-1.4.5:
Undefined first referenced
symbol in file
libintl_bind_textdomain_codeset /export/home1/root/tools/subversion-1.4.5/subversion/libsvn_subr/.libs/libsvn_subr-1.so
libintl_bindtextdomain /export/home1/root/tools/subversion-1.4.5/subversion/libsvn_subr/.libs/libsvn_subr-1.so
libintl_dgettext blame-cmd.o
ld: fatal: Symbol referencing errors. No output written to .libs/svn
collect2: ld returned 1 exit status

The fix was to edit Makefile and add the following to SVN_APR_LIBS:
-L/usr/local/lib -liconv -lintl

and set LIBS:
LIBS = -L/usr/local/lib -liconv -lintl -lsocket -lz


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP