[Solved] Error Installing SVN from Ports in a Jail

Status
Not open for further replies.

Zou

Dabbler
Joined
Jul 26, 2014
Messages
12
Hi,

I try to install a SVN server in a PluginJail on my FreeNas server.

I followed the instruction in the Users Guide ( http://doc.freenas.org/9.2.1/freenas9.2.1_guide.pdf -> section 10.5.2 ). I downloaded the Ports tree with the command portsnap fetch extract , moved to cd /usr/ports/devel/subversion and when I try this command make install clean I have this error :
Code:
root@Subversion:/usr/ports/devel/subversion # make install clean
===>  subversion-1.9.4 pkg(8) must be version 1.6.0 or greater, but you have
1.2.7_2. You must upgrade the ports-mgmt/pkg port first.
*** [install] Error code 1

Stop in /usr/ports/devel/subversion.


What's should I do ? There are no information about this situation in the Users Guide.

Thx
 

Zou

Dabbler
Joined
Jul 26, 2014
Messages
12
Ok I've found the solution. It was easier than expected

Just uninstall et install the latest version of pkg

Run:
1) "pkg delete -f pkg" to delete the old pkg manager
2) "portsnap fetch update" to update the Ports tree
3) "make -C /usr/ports/ports-mgmt/pkg install clean" to compile and install the latest Ports/pkg manager

Now I can Install SVN through Ports

Note: I had to do the same for pkgconf ( "make -C /usr/ports/devel/pkgconf deinstall" then "make -C /usr/ports/devel/pkgconf install clean" )
 

Zou

Dabbler
Joined
Jul 26, 2014
Messages
12
I tried but the command seems not good. I got this :

Code:
root@Subversion:/usr/home/svn # pkg upgrade pkg
Usage: pkg upgrade [-fInFqUy] [-r reponame]

For more information see 'pkg help upgrade'.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
I would have just installed svn using pkg. Being 2 days being ports usually doesn't matter unless you are going to update everyday.
 

Zou

Dabbler
Joined
Jul 26, 2014
Messages
12
I would have just installed svn using pkg. Being 2 days being ports usually doesn't matter unless you are going to update everyday.

I tried to install the default package only but it was an old version (1.8) and on the official website there is no pkg, only the commands to install via Ports so I do so.

Thought you could "pkg upgrade" a specific package. Apparently not. OK, then "pkg upgrade" should have done the job.
I got this
Code:
root@TestSVN:/usr/home/svn # pkg upgrade
Updating repository catalogue
digests.txz  100% 2131KB  2.1MB/s  2.1MB/s  00:00
packagesite.txz  100% 5579KB  5.5MB/s  5.5MB/s  00:01
pkg: package field incomplete: comment
Incremental update completed, 25075 packages processed:
0 packages updated, 0 removed and 25075 added.
pkg: Unable to find catalogs
 
Last edited:
Status
Not open for further replies.
Top