----------------------------------------------------------------------------------------------------------------------------------------------------------
결론 부터 이야기 하겠다.. 설치가 안된다. 뭐 방법이 있을 수 있지만 내가 찾은 방법으론 설치가 불가능했다.
아래 내용은 설치해보면서 삽질한 내용을 정리한것이다.
----------------------------------------------------------------------------------------------------------------------------------------------------------
centos7 32bit 에 subversion 1.8 을 설치 하려 했지만 default 버전이 1.7 버전이다.
# svn --version
svn, version 1.7.14 (r1542130)
compiled Sep 30 2020, 18:09:39
Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
버전을 올리려고 찾아봤더니
https://www.wandisco.com/source-code-management/subversion#redhat
스크립트를 지원 한다. 구동을 해보니
[root@localhost ~]# ./subversion_installer_1.8.sh
:: :: :: # # ## #### ###### # ##### ##### #####
:::: :::: ::: # # # # ## ## # # # # # # # # #
::::::::::: ::: # # # # # # # # # # # # # #
::::::::::::: ::: # # # # # # # # # # # ##### # # #
::::::::::: ::: # # # # # # # # # # # # # # #
:::: :::: ::: ## ## # ## # # # # # # # # # # #
:: :: :: # # ## # # # ###### # ##### ##### #####
You currently have Subversion 1.7.14-16.el7 installed. If you continue with the installation it will be upgraded to 1.8.19-1.
Do you want to continue? (Y/n) y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
One of the configured repositories failed (WANdisco SVN Repo 1.8),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=WANdisco-svn18 ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable WANdisco-svn18
or
subscription-manager repos --disable=WANdisco-svn18
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=WANdisco-svn18.skip_if_unavailable=true
failure: repodata/repomd.xml from WANdisco-svn18: [Errno 256] No more mirrors to try.
http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Not Found File 이 뜬다.
위 페이지 접속 해보니
404 가 뜬다. 좀더 검색 해보니깐
https://img.wandisco.com/centos/6/svn-1.8/RPMS/i386/
주소가 변경 되었다.
파일을 찾아서 rpm 으로 설치 해보니깐
# yum install subversion-1.8.19-1.i686.rpm
Loaded plugins: fastestmirror, langpacks
Examining subversion-1.8.19-1.i686.rpm: subversion-1.8.19-1.i686
Marking subversion-1.8.19-1.i686.rpm as an update to subversion-1.7.14-16.el7.i686
Resolving Dependencies
--> Running transaction check
---> Package subversion.i686 0:1.7.14-16.el7 will be updated
--> Processing Dependency: subversion(x86-32) = 1.7.14-16.el7 for package: subversion-perl-1.7.14-16.el7.i686
Loading mirror speeds from cached hostfile
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
---> Package subversion.i686 0:1.8.19-1 will be an update
--> Processing Dependency: libsasl2.so.2 for package: subversion-1.8.19-1.i686
--> Processing Dependency: libserf-1.so.1 for package: subversion-1.8.19-1.i686
--> Finished Dependency Resolution
Error: Package: subversion-1.8.19-1.i686 (/subversion-1.8.19-1.i686)
Requires: libserf-1.so.1
Error: Package: subversion-perl-1.7.14-16.el7.i686 (@base)
Requires: subversion(x86-32) = 1.7.14-16.el7
Removing: subversion-1.7.14-16.el7.i686 (@base)
subversion(x86-32) = 1.7.14-16.el7
Updated By: subversion-1.8.19-1.i686 (/subversion-1.8.19-1.i686)
subversion(x86-32) = 1.8.19-1
Error: Package: subversion-1.8.19-1.i686 (/subversion-1.8.19-1.i686)
Requires: libsasl2.so.2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
에러가 뜬다. 기존에 svn 1.7을 삭제를 안해서 그렇다.
# yum remove subversion
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package subversion.i686 0:1.7.14-16.el7 will be erased
--> Processing Dependency: subversion(x86-32) = 1.7.14-16.el7 for package: subversion-perl-1.7.14-16.el7.i686
--> Running transaction check
---> Package subversion-perl.i686 0:1.7.14-16.el7 will be erased
--> Processing Dependency: perl(SVN::Client) for package: perl-Git-SVN-1.8.3.1-23.el7_8.noarch
--> Processing Dependency: perl(SVN::Core) for package: perl-Git-SVN-1.8.3.1-23.el7_8.noarch
--> Processing Dependency: perl(SVN::Delta) for package: perl-Git-SVN-1.8.3.1-23.el7_8.noarch
--> Processing Dependency: perl(SVN::Ra) for package: perl-Git-SVN-1.8.3.1-23.el7_8.noarch
--> Running transaction check
---> Package perl-Git-SVN.noarch 0:1.8.3.1-23.el7_8 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================
Removing:
subversion i686 1.7.14-16.el7 @base 4.6 M
Removing for dependencies:
perl-Git-SVN noarch 1.8.3.1-23.el7_8 @base 161 k
subversion-perl i686 1.7.14-16.el7 @base 3.8 M
Transaction Summary
==============================================================================================================================
Remove 1 Package (+2 Dependent packages)
Installed size: 8.5 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : perl-Git-SVN-1.8.3.1-23.el7_8.noarch 1/3
Erasing : subversion-perl-1.7.14-16.el7.i686 2/3
Erasing : subversion-1.7.14-16.el7.i686 3/3
Verifying : subversion-perl-1.7.14-16.el7.i686 1/3
Verifying : perl-Git-SVN-1.8.3.1-23.el7_8.noarch 2/3
Verifying : subversion-1.7.14-16.el7.i686 3/3
Removed:
subversion.i686 0:1.7.14-16.el7
Dependency Removed:
perl-Git-SVN.noarch 0:1.8.3.1-23.el7_8 subversion-perl.i686 0:1.7.14-16.el7
Complete!
삭제를 하고 다시 설치 해보자.
# yum install subversion-1.8.19-1.i686.rpm
Loaded plugins: fastestmirror, langpacks
Examining subversion-1.8.19-1.i686.rpm: subversion-1.8.19-1.i686
Marking subversion-1.8.19-1.i686.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package subversion.i686 0:1.8.19-1 will be installed
--> Processing Dependency: libsasl2.so.2 for package: subversion-1.8.19-1.i686
Loading mirror speeds from cached hostfile
--> Processing Dependency: libserf-1.so.1 for package: subversion-1.8.19-1.i686
--> Finished Dependency Resolution
Error: Package: subversion-1.8.19-1.i686 (/subversion-1.8.19-1.i686)
Requires: libserf-1.so.1
Error: Package: subversion-1.8.19-1.i686 (/subversion-1.8.19-1.i686)
Requires: libsasl2.so.2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
또 에러가 뜬다.
rpm 으로는 설치가.. 힘들듯 하다.
컴파일을 해서 설치 하자.
https://archive.apache.org/dist/subversion/
다운 받아서 압축을 풀고
# tar -xvf subversion-1.8.14.tar.gz
# subversion-1.8.14
# ./autogen.sh
# ./configure
# make
# make install
# /usr/local/bin/svn --version
svn, version 1.8.14 (r1692801)
compiled Oct 18 2022, 21:10:25 on i686-pc-linux-gnu
Copyright (C) 2015 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
아.... https, http module 이 설치가 안된다... 젠장..
다시 원위치로 가서..
libserf-1.so.1 위 에러는
위 파일을 설치 하면 해결이 된다. 이제 문제는..
Requires: libsasl2.so.2 이다.
이건 cyrus-sasl 설치 하면 되지만..
# ls -al /usr/lib/libsasl2*
lrwxrwxrwx. 1 root root 17 Oct 19 16:04 /usr/lib/libsasl2.so -> libsasl2.so.3.0.0
lrwxrwxrwx. 1 root root 17 Oct 19 13:50 /usr/lib/libsasl2.so.3 -> libsasl2.so.3.0.0
-rwxr-xr-x. 1 root root 80844 Oct 19 16:03 /usr/lib/libsasl2.so.3.0.0
libsasl2.so.2 버전이 없다.
혹시나 해서 libsasl2.so.3.0.0 파일을 심볼링 링크로 해서 libsasl2.so.2 변환 해봤지만 실패!!
버전 낮은건 libsasl2.so.2 버전이 있어서 이파일을 추출해서 넣어봤지만... 실패!!
이것저것 다 해봤지만.. 결국엔 실패 했다.
설치 하는 방법이 없을듯 하다.