Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No port serf found in the index; can't rebuild

I'm trying to install npm port package but when I run the command "sudo port install npm" the bash shows error message below, and repeat the same error infinitely.

Warning: No port serf found in the index; can't rebuild
--->  Found 0 broken port(s), determining rebuild order
--->  Rebuilding in order
--->  Scanning binaries for linking errors: 100.0%
--->  Found 2 broken file(s), matching files to ports

How can I solve this problem?

Thanks.

like image 520
GodFather Avatar asked Jul 28 '12 01:07

GodFather


2 Answers

To fix this problem I made a port cleanup and deactivate, the steps:

sudo port clean serf
sudo port -f deactivate serf
sudo port install serf

Following the steps above my problem was solved.

like image 107
GodFather Avatar answered Oct 18 '22 20:10

GodFather


I just tried the deactivating trick and saw this:

$ sudo port clean serf
Warning: Skipping serf (not in the ports tree)
$ sudo port -f deactivate serf
--->  Deactivating serf @0.3.0_0
$ sudo port install serf
Warning: Skipping serf (not in the ports tree)
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.
$

In spite of the fact that serf isn't in the ports tree, things now seem all better.

like image 3
Ted Dunning Avatar answered Oct 18 '22 19:10

Ted Dunning