Error insufficient privileges to write to macports install prefix

I try to install MacPorts and get this $ sudo make install make: getcwd: Permission denied shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission deni...

I try to install MacPorts and get this

$ sudo make install
make: getcwd: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
===> making install in doc
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
chdir: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
make: getcwd: Permission denied
/usr/bin/install -c -d -o root -g admin -m 0755 "/opt/local"
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
install: mkdir /opt: Permission denied
make[1]: *** [install] Error 71
make: *** [install] Error 1

I am also not able to

$ sudo mkdir /opt
mkdir: /opt: Permission denied

I can create the directory with

open /

and then with Finder.

I am also able to install MacPorts with the installer .pgk, but then:

sudo port install htop
Error: Insufficient privileges to write to MacPorts install prefix.

asked Oct 27, 2013 at 20:13

nilo's user avatar

8

Well, try the following:
Reboot into single user mode, this is archieved by holding down alt(option) + s while rebooting.
At the prompt /sbin/fsck -fy(careful, QWERTZ-Layout), after that type /sbin/mount -wu. Now /bin/chmod 1775 /. At last /bin/sync,then exit.

This will check your filesystem integrity and correct permissions for your root directory.

answered Oct 28, 2013 at 17:27

napcae's user avatar

napcaenapcae

2,05117 silver badges21 bronze badges

Check that root’s UID is actually 0 on your system: sudo id -u should print 0.

This wasn’t the case on my system after updating to Mavericks. If it isn’t, you can do the following to fix it:

  • boot into single user mode
  • change to /private/var/db/dslocal/nodes/Default/users
  • check that root’s UID is wrong in root.plist using plutil -p root.plist
  • if it is wrong, start by making a backup: cp root.plist root.plist.orig
  • convert the plist to xml format using plutil -fmt xml1 root.plist
  • use your favorite editor to change the number after <key>uid</key> to 0
  • convert the plist back to binary format using plutil -fmt binary1 root.plist

answered Nov 5, 2013 at 8:30

neverpanic's user avatar

neverpanicneverpanic

8365 silver badges10 bronze badges

The UID of root on your system was: 217 _krbtgt (Kerberos Ticket Granting Ticket)

There IS a user called _krbtgt (Kerberos Ticket Granting Ticket) in
/System/Library/DirectoryServices/DefaultLocalDB/Default/users,
that indeed is user 217.

More information: https://discussions.apple.com/message/24414669#24414669

grg's user avatar

grg

192k43 gold badges335 silver badges458 bronze badges

answered Jan 7, 2014 at 14:48

Richard C Tilley's user avatar

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

I’m just dropping in to say that using a soft link to accomplish this is a terrible, no-good, horrible idea.

One of the key things about writing software is reproduceability — you want to be able to get the same results every time. These systems are so complex that you want to reduce all invisible sources of error.

Having a soft link is an invisible source of error. It’s the sort of thing you’ll forget in a month, then move to a different machine, and wonder why you are getting different results — or, you’ll try to upgrade your system, and you’ll get weird errors because it’s not expecting a softlink there.

Moreover, this isn’t guaranteed to work — in particular, it’s not clear that you will get the correct system include files, which have certainly changed between iterations of gcc.

gcc_select is a systematic way of doing the same thing which will work predictably, or in the very worst case you can file a bug report and get an eventual fix or fix it yourself.

Unfortunately :-( gcc_select does not affect which compiler XCode uses so it’s not the way to go if you need to work in XCode (which I do). I still don’t know what that way might be.

Я просто заглядываю, чтобы сказать, что использование мягкой ссылки для этого — ужасная, нехорошая, ужасная идея.

Одна из ключевых особенностей написания программного обеспечения — воспроизводимость — вы хотите получать одинаковые результаты каждый раз. Эти системы настолько сложны, что вы хотите уменьшить все невидимые источники ошибок.

Наличие мягкой ссылки — невидимый источник ошибки. Это то, что вы забудете в месяц, затем перейдите на другую машину и зададитесь вопросом, почему вы получаете разные результаты — или вы попытаетесь обновить свою систему, и вы получите странные ошибки, потому что это не ожидая там softlink.

Кроме того, это не гарантирует работу — в частности, не ясно, что вы получите правильные системные файлы, которые, безусловно, изменились между итерациями gcc.

gcc_select — это систематический способ сделать то же самое, что будет работать предсказуемо, или в самом худшем случае вы можете подать отчет об ошибке и получить возможное исправление или исправить его самостоятельно.

К сожалению:-( gcc_select не влияет на то, какой компилятор XCode использует, поэтому он не подходит, если вам нужно работать в XCode (что я и делаю). Я до сих пор не знаю, как это может быть.

Neial5546

Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Few Questions

First of all, I am very mac illiterate as I have been using windows all my life. I am enquiring to see about getting some help on the whole wine thing. I have been looking at the wiki and FAQs but Im lost. I installed wine from sourceforge but when I go to click wineinstall in the tools folder, this is what I get:

Last login: Sun Sep 18 21:31:41 on ttys000
/Users/christiankirby/Downloads/wine-1.3.13/tools/wineinstall ; exit;
Christian-Kirbys-MacBook-Pro:~ christiankirby$ /Users/christiankirby/Downloads/wine-1.3.13/tools/wineinstall ; exit;
Wine Installer v1.0

You’re running this from the wrong directory.
Change to the Wine source’s main directory and try again.
logout

[Process completed]

If anyone can help me on how to compile or whatever else it is I may need, it would be appreciated. Can either email me at cstjohn51@charter.net or send me a private message, thank you.

jjmckenzie

Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Few Questions

Post

by jjmckenzie » Sun Sep 18, 2011 9:41 pm

On 9/18/11 6:38 PM, Neial5546 wrote:

First of all, I am very mac illiterate as I have been using windows all my life. I am enquiring to see about getting some help on the whole wine thing. I have been looking at the wiki and FAQs but Im lost. I installed wine from sourceforge but when I go to click wineinstall in the tools folder, this is what I get:

Installing Wine on a Mac requires installing Linux/UNIX dependencies. I
recommend using either MacPorts, Fink or osxwinebuilder (Google for it)
to install the dependencies and Wine itself.

Before installing ANY program in Wine I highly recommend visiting the
Applications Database. Some of the hints do work with the Mac.

James

Neial5546

Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post

by Neial5546 » Sun Sep 18, 2011 11:18 pm

I got MacPorts yesterday, since Im on OSX, I guess Im going to have to compile my own wine since there isnt a distribution for mac OSX, so the question is, how do I compile and install wine?

doh123

Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post

by doh123 » Sun Sep 18, 2011 11:29 pm

Neial5546 wrote:I got MacPorts yesterday, since Im on OSX, I guess Im going to have to compile my own wine since there isnt a distribution for mac OSX, so the question is, how do I compile and install wine?

Unless you want to use a Third Pary App that uses Wine(http://wiki.winehq.org/ThirdPartyApplications), yes you’ll have to compile Wine yourself and use it all command line.

This is easy on Macports though, you just open up Terminal and type…

port install wine-devel

to get the latest development version installed… it handles getting everything you need, downloading them, and compiling them… so you just let it go.

Neial5546

Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post

by Neial5546 » Sun Sep 18, 2011 11:30 pm

And then also, I typed in the command $ port search wine and this is what I got:

Last login: Mon Sep 19 00:24:41 on ttys000
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port search wine
mystonline-wine @2010 (games, x11)
Myst Online: URU Live Again

wine @1.2.3 (x11)
Wine Is Not an Emulator

wine-crossover @10.0.3 (x11)
Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver)

wine-crossover-games @10.0.0 (x11)
Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver
Games)

wine-devel @1.3.28 (x11)
Wine Is Not an Emulator

winetricks @20110629 (x11)
downloads and installs various redistributable runtime libraries

Found 6 ports.
Christian-Kirbys-MacBook-Pro:~ christiankirby$

What I am trying to figure out next, from the wiki is how do I install it?

jjmckenzie

Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Few Questions

Post

by jjmckenzie » Mon Sep 19, 2011 9:30 am

On Sun, Sep 18, 2011 at 9:30 PM, Neial5546 <wineforum-user@winehq.org> wrote:

And then also, I typed in the command $ port search wine and this is what I got:

Last login: Mon Sep 19 00:24:41 on ttys000
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port search wine
mystonline-wine @2010 (games, x11)
   Myst Online: URU Live Again

wine @1.2.3 (x11)
   Wine Is Not an Emulator

wine-crossover @10.0.3 (x11)
   Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver)

wine-crossover-games @10.0.0 (x11)
   Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver
   Games)

wine-devel @1.3.28 (x11)
   Wine Is Not an Emulator

winetricks @20110629 (x11)
   downloads and installs various redistributable runtime libraries

Found 6 ports.
Christian-Kirbys-MacBook-Pro:~ christiankirby$

What I am trying to figure out next, from the wiki is how do I install it?

Do what doh123 said to do:

port install wine-devel

This will install the wine-devel version on your system and configure
your system so Wine can be used.

James

Neial5546

Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post

by Neial5546 » Mon Sep 19, 2011 11:15 am

Now a new problem has developed, I typed in what you guys said, and this is what I got:

Last login: Mon Sep 19 00:46:17 on ttys000
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port install wine-devel
Error: Insufficient privileges to write to MacPorts install prefix.
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port install wine-devel
Error: Insufficient privileges to write to MacPorts install prefix.
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port search wine
mystonline-wine @2010 (games, x11)
Myst Online: URU Live Again

wine @1.2.3 (x11)
Wine Is Not an Emulator

wine-crossover @10.0.3 (x11)
Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver)

wine-crossover-games @10.0.0 (x11)
Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver
Games)

wine-devel @1.3.28 (x11)
Wine Is Not an Emulator

winetricks @20110629 (x11)
downloads and installs various redistributable runtime libraries

Found 6 ports.
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port install wine-devel
Error: Insufficient privileges to write to MacPorts install prefix.
Christian-Kirbys-MacBook-Pro:~ christiankirby$

Charles Davis

Few Questions

Post

by Charles Davis » Mon Sep 19, 2011 12:17 pm

On Sep 19, 2011, at 10:15 AM, Neial5546 wrote:

Christian-Kirbys-MacBook-Pro:~ christiankirby$ port install wine-devel
Error: Insufficient privileges to write to MacPorts install prefix.

That’s because you need to run this particular command as root. And to do that, you tack a ‘sudo’ on the beginning of the command, like so:

sudo port install wine-devel

Now (after you enter your password at the prompt) you’ll be able to install Wine.

Chip

Neial5546

Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post

by Neial5546 » Mon Sep 19, 2011 2:46 pm

Did that, now my norton is popping up with carious ip addresses and places like sourceforge requesting access to my computer and its asking me if I want to block or allow them in, what should I do?

doh123

Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post

by doh123 » Mon Sep 19, 2011 6:22 pm

As to your question, Macports has to access and download source code from many places, including sourceforge, so it can build it… so yes you need to let it download.

also

current Macports does not need to be run as root, and some things break if you sudo it, so something might be wrong with your installation.

This is beyond the help of this message board since its not a Wine issue.. but…

do a…

sudo port selfupdate

and make sure its all up to date.

Are you on an admin user account… or the same account that installed Macports? its install location (/opt/local) might be off limits to your current user.

you can do this command with a sudo to fix the folder if its messed up…

sudo chmod -R 777 /opt/local

because its supposed to be full read/write

ryan woodsmall

Few Questions

Post

by ryan woodsmall » Mon Sep 19, 2011 6:45 pm

sudo chmod -R 777 /opt/local

Do NOT run that. That recursively grants rwx permissions to *every* user on the system for *everything* in that directory. Bad idea. The only time 777 should be granted is on temp directories in conjunction with a sticky bit of some sort.

Just prefix any «port» subcommands with sudo and you’ll be safe. -r

Neial5546

Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post

by Neial5546 » Mon Sep 19, 2011 7:57 pm

Ok, wine has been installed. Now the next question, how do I install the windows program I’m trying to install?

Neial5546

Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post

by Neial5546 » Mon Sep 19, 2011 8:11 pm

Got that. Now the problem is, I right click it, it does not give me the option to open with wine. I use the terminal and it opens just fine and now Im trying to download the game. Hope this works

jjmckenzie

Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Few Questions

Post

by jjmckenzie » Mon Sep 19, 2011 8:49 pm

On 9/19/11 6:11 PM, Neial5546 wrote:

Got that. Now the problem is, I right click it, it does not give me the option to open with wine. I use the terminal and it opens just fine and now Im trying to download the game. Hope this works

You should not get this option from the Mac Menu.

You will have to install from terminal.

James

Neial5546

Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post

by Neial5546 » Mon Sep 19, 2011 9:54 pm

Doing it that, trying to install LastChaos and the downloader itself works, but the terminal is constantly displaying:

Moderator: Huge log removed. Use pastebin instead

doh123

Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Few Questions

Post

by doh123 » Mon Sep 19, 2011 10:11 pm

ryan woodsmall wrote:

sudo chmod -R 777 /opt/local

Do NOT run that. That recursively grants rwx permissions to *every* user on the system for *everything* in that directory. Bad idea. The only time 777 should be granted is on temp directories in conjunction with a sticky bit of some sort.

Just prefix any «port» subcommands with sudo and you’ll be safe. -r

/opt/local does not exist normally.. its only Macports and nothing else… nothing has been installed in it yet, so its just Macports executables and config files which are already supposed to be all users.

Macports is designed to not be run with sudo anymore… and just like running Wine with sudo, you can really mess things up, and some ports won’t even install if you sudo it.

doh123

Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Few Questions

Post

by doh123 » Tue Sep 20, 2011 12:38 pm

You can have your own opinions on the 777 issue… I wouldn’t base it on out-dated documentation, but I’ll stick with what actually works. If you want more info thats up to date, read through change logs, not old documentation thats kept up as poorly as Wine’s.

jjmckenzie

Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Few Questions

Post

by jjmckenzie » Tue Sep 20, 2011 1:40 pm

On Tue, Sep 20, 2011 at 10:38 AM, doh123 <wineforum-user@winehq.org> wrote:

ryan woodsmall wrote:

You can have your own opinions on the 777 issue… I wouldn’t base it on out-dated documentation, but I’ll stick with what
actually works.  If you want more info thats up to date, read through change logs, not old documentation thats kept up as
poorly as Wine’s.

I would, as a security expert, never set a directory or file to full
access on any operating system without good reason. In this case it
may be possible to get away with rw-rw-r-s which will assign the
current user read/write permissions.

James

ryan woodsmall

Few Questions

Post

by ryan woodsmall » Tue Sep 20, 2011 1:53 pm

You can have your own opinions on the 777 issue…

I base my opinion on the fact that 777 permissions are dangerous even on single-user systems. Wine is not a sandbox, anything you grant 777 to is opening up a hole big enough to drive a truck in. Couple that with the fact MacPorts can be used to install things like web servers, application servers, etc., and you’re asking for trouble.

I am a professional sysadmin. I’ve cleaned up far too many webserver hacks because people don’t care enough to bother setting sane permissions and ownership on blog installs. It would be one thing to recursively chown the MacPorts /opt/local directory to your user/group to make installs easier; it’s another thing entirely to give everyone and their dog permission to write to any file or directory, including binaries.

I could present hypotheticals but I won’t. Wine and 777 permissions on system-level directories is not safe. This should be obvious.

Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Im trying to install git-flow, however running into this error «Insufficient privileges to write to MacPorts install prefix.»

I am the admin of the computer and Xcode and MacPorts is up to date. Anyone have any ideas?

1 Answer

  • #1

Hi Guys,

I’ve just upgraded to Lion 10.7.3, and am having some issues with installing Xcode and a bunch of other binaries I’m using, for a customized DVD burning application.

All was working fine on 10.6.8, but now after installing Xcode 4.3, and some associated binaries (in particular cdrtools) I’m having issues with the «mkisofs» binary — which doesn’t appear as it did previously, in my /opt/local/bin/ directory.

Has anyone else experienced this, or has anyone got any suggestions about how to get mkisofs installed?

Just wondering if it’s Xcode 4.3 related, and if downgrading to 4.2 might work?

Regards
Steve

  • #2

With XCode 4.3, the command line utilities and compilers are no longer installed by default. Start XCode, go to preferences->downloads->components. Then click on install next to command line tools.

I don’t think mkisofs is part of xcode though. If you found it in /opt/local/bin before, it is probably part of a macports package.

Last edited: Apr 30, 2012

  • #3

4.3.2 is the newest version on the App store, if that helps you at all.

  • #4

Thanks guys,

I’ve installed the command line tools (found that after another error), and also have the latest version installed 4.3.2

Re-loaded Lion a couple of times to ensure a clean install with no rubbish anywhere (doesn’t take long now), but still the same issues when I run the «ls -1 /opt/local/bin/» command to see if it’s installed.

I got a couple of previous errors, but this post helped me with those issues relating to where XCode 4.3.2 is now installed:

http://stackoverflow.com/questions/…port-functionality-after-installing-xcode-4-3

Didn’t fix the mkisofs / cdrtools issue though.

  • #5

Thanks guys,

Didn’t fix the mkisofs / cdrtools issue though.

Did you install the cdrtools port?

  • #6

I installed cdrtools using:

sudo port install cdrtools

. . . . previously with 10.6.8, was that correct?
Not sure how to check it’s installed properly though (novice at terminal)

  • #7

Looks like mkisofs is no longer part of cdrtools. It is however part of dvdrtools, so install that instead. The two ports are incompatible, so you will need to remove cdrtools before you can install dvdrtools.

  • #8

OK thanks, I’ll give that a go.

Can I ask where you saw the info, as I looked for this but until now, hadn’t found anything.

Thanx

  • #9

Well I installed cdrtools and saw I had the same problem as you, so I did «port info cdrtools» and saw in the description that it conflicts with dvdrtools. A quick google search found that dvdrtools was a branch of cdrtools, so I gave it a go and there was the tool in question.

  • #10

. . . and the correct way to remove cdrtools in terminal?

  • #11

port uninstall cdrtools

You are familiar with the man command right? if not, type «man port» and you will see all kinds of info.

  • #12

Yes I’ve used the man command previously to check the installation went OK.

But using the command you’ve mentioned returns:

Error: Insufficient privileges to write to MacPorts install prefix

Should I be using the sudo command?

ie: sudo port uninstall cdrtools ?

———-

. . . . OK got it, just installing dvdrtools now.

OK, installed and running: man mkisofs returns installation info.
But do I still need both cdrtools and dvdrw-tools as per my previous 10.6.8 installs, to burn the DVD’s?

Thanx

Last edited: Apr 30, 2012

@Henrietta1989

@RJVB

You’d have to as the owner of the repo, @diimdeep .

I don’ provide binaries in my repo, just the source. I do however provide a MacPorts ports tree that contains a port:afsctool that strives to install the latest stable release: https://github.com/RJVB/macstrop .

@Henrietta1989

I installed PortAuthority and MacPorts but if i search for afsctool, it only finds brkirch.wordpress.com/afsctool/ 1.6.4 version.

I try to install your version or any other afsctool which works best in Mojave. Thanks

@RJVB

Please follow the instructions from the macstrop README (go to the macstrop project page on github and scroll down). You need to tell MacPorts to use the macstrop ports tree if you want to see my version of port:afsctool . Note that the port doesn’t yet include the latest changes on here; I’m waiting for more tester feedback.

If you want the latest version you can install the dependencies through MacPorts and then build the afsctool sources as instructed here.

@Henrietta1989

So i need to do this part of Readme:

%> sudo -u macports git clone —depth=1 —no-single-branch http://github.com/RJVB/macstrop.git /opt/local/site-ports

(the —depth and —no-single-branch options are optional of course.)

Then, edit ${prefix}/etc/macports/sources.conf (${prefix} is where MacPorts is installed; by default it’s /opt/local). Towards the end of the file, add a line above the line that has [default] at the end:

file:///opt/local/site-ports

and save the file. If you do not want this repository to be updated automatically whenever you do port selfupdate or port sync, you’ll want to add [nosync] at the end of the line you added.

Now, do

%> (cd /opt/local/site-ports ; portindex)

and the new ports will be available.

I have default settings in both MacPorts and PortAuthority.

sudo -u macports git clone --depth=1 --no-single-branch http://github.com/RJVB/macstrop.git /opt/local/site-ports

fatal: could not create work tree dir ‘/opt/local/site-ports’: Permission denied

This might be too complicated for me to install. Do you think there is other afsctool compatible with Mojave which is easy to install? Thanks

@RJVB

OOps, you found an error in the README instructions! Can you try with these updated instructions?

«`
%> sudo git clone —depth=1 —no-single-branch http://github.com/RJVB/macstrop.git /opt/local/site-ports
%> sudo chown -R macports /opt/local/site-ports

This makes sure that the resulting tree will be readable by the «macporst» user. (The —depth and —no-single-branch options are optional of course.)
To update the tree later on, use
%> sudo -u macports git -C /opt/local/site-ports pull
«`

@Henrietta1989

No error this time, but if i search using PortAuthority, still it shows only brkirch 1.6.4.

Any RSS-feed which updates when you update afsctool?

Does the path change? I used this earlier:

sudo /usr/local/bin/afsctool -ckl path/here

@RJVB

I have no experience with PortAuthority, but it should behave the same as the `port` terminal command.
Of course you will need to follow the entire instruction set. In particular you have to add /opt/local/site-ports to sources.conf on a line *before* the default source, and run portindex in /opt/local/site-ports.

I’ve never tested, but in principle the tree in /opt/local/site-ports should be updated when you run `port selfupdate`, as long as you don’t tell MacPorts NOT to do that (so no nosync keyword on the site-ports line in sources.conf).

@Henrietta1989

If i run this:

(cd /opt/local/site-ports ; portindex)

These are last rows in Terminal window:

Adding port x11/xvisbell
error renaming «/tmp/mports.portindex.FSbgu5HU» to «/opt/local/site-ports/PortIndex»: permission denied
while executing
«file rename -force $tempportindex $outpath»
(file «/opt/local/bin/portindex» line 329)

And PortAuthority still don’t find it.

@RJVB

Thanks for your patience with this, I appreciate the feedback from someone who is not an experienced developer or Unix user! I’ve clearly been assuming too much that potential users of my ports do have that kind of experience.

The `chown` command you executed earlier changed the ownership of /opt/local/site-ports to the «macports» user. Simplifying things a bit, that means that every command that modifies anything inside that directory has to executed as that user, i.e. with `sudo -u macports` in front of the command.

So:

%> (cd /opt/local/site-ports ; sudo -u macports portindex)

I’ve looked at the README a bit more, there should be no other commands that need this same prefix. GIven why you installed my ports I would advise against following the instructions concerning the git hooks; those may become relevant if ever you want to install other ports but they’re not required for installing just afsctool.

@Henrietta1989

I did this:
(cd /opt/local/site-ports ; sudo -u macports portindex)

I can see afsctool 1.6.9.8 in PortAuthority. I then tried to install it using PortAuthority.

PortAuthority installed it 1-2 hours and it Pinged 76 different servers for some reason.

In end of log was this and it says afsctool failed:

sparsehash/internal/hashtable-common.h
x ./opt/local/include/sparsehash/internal/sparseconfig.h
—> Cleaning sparsehash
—> Removing work directory for sparsehash
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port afsctool failed
—> Some of the ports you installed have notes:
libpsl has the following notes:
libpsl API documentation is provided by the port ‘libpsl-docs’.

Then Kernel Panic.

PortAuthority don’t list it in Installed window.

Now if i try to install again using PortAuthority:

—> Computing dependencies for afsctool.
.
.

—> Dependencies to be installed: cmake libcxx

Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port afsctool failed

@RJVB

PortAuthority installed it 1-2 hours and it Pinged 76 different servers for some reason.

I would have to see the full log to figure out why that is, but between the required git, sparsehash and cmake there are quite about 70 dependencies to install. It does not explain why it took so long; is PortAuthority configured to build everything from source? What kind of computer are you running this on?

You can attach the log file here, but you would probably have to add «.txt» to the filename.

Then Kernel Panic.

Did you really get a kernel panic, i.e. did you have to reboot the machine? If so that is something you really should report on trac.macports.org!

—> Dependencies to be installed: cmake libcxx

You should not be needing libcxx if you are running «Mojave»!

Please try without PortAuthority. As I said, I don’t know it, and I have no idea how well maintained it is (e.g. if it works correctly on the latest Mac OS). In a terminal, do

%> sudo port clean afsctool
%> sudo port install afsctool

If that succeeds, fine. If not, please try a clean install

%> sudo port -u -f uninstall active
%> sudo port clean afsctool
%> sudo port install afsctool

@Henrietta1989

It was kernel panic. MacBook Pro Retina. Mojave.

Fails:

Last login: Wed Oct 10 12:19:11 on ttys002
Home:~ Henrietta$ sudo port clean afsctool
Password:
—> Cleaning afsctool
Home:~ Henrietta$ sudo port install afsctool
—> Computing dependencies for afsctool
The following dependencies will be installed:
cmake
libcxx
Continue? [Y/n]: y
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port afsctool failed
Home:~ Henrietta$ sudo port -u -f uninstall active
—> Deactivating autoconf @2.69_5
—> Cleaning autoconf
—> Uninstalling autoconf @2.69_5
—> Cleaning autoconf
—> Deactivating automake @1.16.1_0
—> Cleaning automake
—> Uninstalling automake @1.16.1_0
—> Cleaning automake
—> Deactivating libarchive @3.3.3_0
—> Cleaning libarchive
—> Uninstalling libarchive @3.3.3_0
—> Cleaning libarchive
—> Deactivating curl @7.61.1_0+ssl
—> Cleaning curl
—> Uninstalling curl @7.61.1_0+ssl
—> Cleaning curl
—> Deactivating libpsl @0.20.2-20180522_0
—> Cleaning libpsl
—> Uninstalling libpsl @0.20.2-20180522_0
—> Cleaning libpsl
—> Deactivating glib2 @2.56.0_0+x11
—> Cleaning glib2
—> Uninstalling glib2 @2.56.0_0+x11
—> Cleaning glib2
—> Deactivating pcre @8.41_1
—> Cleaning pcre
—> Uninstalling pcre @8.41_1
—> Cleaning pcre
—> Deactivating bzip2 @1.0.6_0
—> Cleaning bzip2
—> Uninstalling bzip2 @1.0.6_0
—> Cleaning bzip2
—> Deactivating curl-ca-bundle @7.61.1_2
—> Cleaning curl-ca-bundle
—> Uninstalling curl-ca-bundle @7.61.1_2
—> Cleaning curl-ca-bundle
—> Deactivating expat @2.2.6_1
—> Cleaning expat
—> Uninstalling expat @2.2.6_1
—> Cleaning expat
—> Deactivating libidn2 @2.0.5_0
—> Cleaning libidn2
—> Uninstalling libidn2 @2.0.5_0
—> Cleaning libidn2
—> Deactivating libxml2 @2.9.7_0
—> Cleaning libxml2
—> Uninstalling libxml2 @2.9.7_0
—> Cleaning libxml2
—> Deactivating xz @5.2.3_0+nls
—> Cleaning xz
—> Uninstalling xz @5.2.3_0+nls
—> Cleaning xz
—> Deactivating gettext @0.19.8.1_0
—> Cleaning gettext
—> Uninstalling gettext @0.19.8.1_0
—> Cleaning gettext
—> Deactivating libedit 20170329-3.1_2
—> Cleaning libedit
—> Uninstalling libedit 20170329-3.1_2
—> Cleaning libedit
—> Deactivating libffi @3.2.1_0
—> Cleaning libffi
—> Uninstalling libffi @3.2.1_0
—> Cleaning libffi
—> Deactivating libunistring @0.9.10_0
—> Cleaning libunistring
—> Uninstalling libunistring @0.9.10_0
—> Cleaning libunistring
—> Deactivating pkgconfig @0.29.2_0
—> Cleaning pkgconfig
—> Uninstalling pkgconfig @0.29.2_0
—> Cleaning pkgconfig
—> Deactivating libiconv @1.15_0
—> Cleaning libiconv
—> Uninstalling libiconv @1.15_0
—> Cleaning libiconv
—> Deactivating libtool @2.4.6_5
—> Cleaning libtool
—> Uninstalling libtool @2.4.6_5
—> Cleaning libtool
—> Deactivating libuv @1.23.1_0
—> Cleaning libuv
—> Uninstalling libuv @1.23.1_0
—> Cleaning libuv
—> Deactivating lz4 @1.8.3_0
—> Cleaning lz4
—> Uninstalling lz4 @1.8.3_0
—> Cleaning lz4
—> Deactivating lzo2 @2.10_0
—> Cleaning lzo2
—> Uninstalling lzo2 @2.10_0
—> Cleaning lzo2
—> Deactivating ncurses @6.0_0
—> Cleaning ncurses
—> Uninstalling ncurses @6.0_0
—> Cleaning ncurses
—> Deactivating openssl @1.0.2p_0
—> Cleaning openssl
—> Uninstalling openssl @1.0.2p_0
—> Cleaning openssl
—> Deactivating sparsehash @2.0.3_1
—> Cleaning sparsehash
—> Uninstalling sparsehash @2.0.3_1
—> Cleaning sparsehash
—> Deactivating zlib @1.2.11_0
—> Cleaning zlib
—> Uninstalling zlib @1.2.11_0
—> Cleaning zlib
Home:~ Henrietta$ sudo port clean afsctool
—> Cleaning afsctool
Home:~ Henrietta$ sudo port install afsctool
—> Computing dependencies for afsctool
The following dependencies will be installed:
autoconf
automake
bzip2
cmake
curl
curl-ca-bundle
expat
gettext
glib2
libarchive
libcxx
libedit
libffi
libiconv
libidn2
libpsl
libtool
libunistring
libuv
libxml2
lz4
lzo2
ncurses
openssl
pcre
pkgconfig
sparsehash
xz
zlib
Continue? [Y/n]: y
—> Fetching archive for bzip2
—> Attempting to fetch bzip2-1.0.6_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/bzip2
—> Attempting to fetch bzip2-1.0.6_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/bzip2
—> Installing bzip2 @1.0.6_0
—> Activating bzip2 @1.0.6_0
—> Cleaning bzip2
—> Fetching archive for curl-ca-bundle
—> Attempting to fetch curl-ca-bundle-7.61.1_2.darwin_18.noarch.tbz2 from https://packages.macports.org/curl-ca-bundle
—> Attempting to fetch curl-ca-bundle-7.61.1_2.darwin_18.noarch.tbz2.rmd160 from https://packages.macports.org/curl-ca-bundle
—> Installing curl-ca-bundle @7.61.1_2
—> Activating curl-ca-bundle @7.61.1_2
—> Cleaning curl-ca-bundle
—> Fetching archive for libiconv
—> Attempting to fetch libiconv-1.15_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libiconv
—> Attempting to fetch libiconv-1.15_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libiconv
—> Installing libiconv @1.15_0
—> Activating libiconv @1.15_0
—> Cleaning libiconv
—> Fetching distfiles for ncurses
—> Verifying checksums for ncurses
—> Extracting ncurses
—> Applying patches to ncurses
—> Configuring ncurses
—> Building ncurses
—> Staging ncurses into destroot
—> Installing ncurses @6.0_0
—> Activating ncurses @6.0_0
—> Cleaning ncurses
—> Fetching archive for gettext
—> Attempting to fetch gettext-0.19.8.1_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/gettext
—> Attempting to fetch gettext-0.19.8.1_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/gettext
—> Installing gettext @0.19.8.1_0
—> Activating gettext @0.19.8.1_0
—> Cleaning gettext
—> Fetching archive for libunistring
—> Attempting to fetch libunistring-0.9.10_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libunistring
—> Attempting to fetch libunistring-0.9.10_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libunistring
—> Installing libunistring @0.9.10_0
—> Activating libunistring @0.9.10_0
—> Cleaning libunistring
—> Fetching archive for libidn2
—> Attempting to fetch libidn2-2.0.5_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libidn2
—> Attempting to fetch libidn2-2.0.5_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libidn2
—> Installing libidn2 @2.0.5_0
—> Activating libidn2 @2.0.5_0
—> Cleaning libidn2
—> Fetching archive for autoconf
—> Attempting to fetch autoconf-2.69_5.darwin_18.noarch.tbz2 from https://packages.macports.org/autoconf
—> Attempting to fetch autoconf-2.69_5.darwin_18.noarch.tbz2.rmd160 from https://packages.macports.org/autoconf
—> Installing autoconf @2.69_5
—> Activating autoconf @2.69_5
—> Cleaning autoconf
—> Fetching archive for automake
—> Attempting to fetch automake-1.16.1_0.darwin_18.noarch.tbz2 from https://packages.macports.org/automake
—> Attempting to fetch automake-1.16.1_0.darwin_18.noarch.tbz2.rmd160 from https://packages.macports.org/automake
—> Installing automake @1.16.1_0
—> Activating automake @1.16.1_0
—> Cleaning automake
—> Fetching archive for libffi
—> Attempting to fetch libffi-3.2.1_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libffi
—> Attempting to fetch libffi-3.2.1_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libffi
—> Installing libffi @3.2.1_0
—> Activating libffi @3.2.1_0
—> Cleaning libffi
—> Fetching archive for libtool
—> Attempting to fetch libtool-2.4.6_5.darwin_18.x86_64.tbz2 from https://packages.macports.org/libtool
—> Attempting to fetch libtool-2.4.6_5.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libtool
—> Installing libtool @2.4.6_5
—> Activating libtool @2.4.6_5
—> Cleaning libtool
—> Fetching archive for libedit
—> Attempting to fetch libedit-20170329-3.1_2.darwin_18.x86_64.tbz2 from https://packages.macports.org/libedit
—> Attempting to fetch libedit-20170329-3.1_2.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libedit
—> Installing libedit 20170329-3.1_2
—> Activating libedit 20170329-3.1_2
—> Cleaning libedit
—> Fetching distfiles for xz
—> Verifying checksums for xz
—> Extracting xz
—> Configuring xz
—> Building xz
—> Staging xz into destroot
—> Installing xz @5.2.3_0+nls
—> Activating xz @5.2.3_0+nls
—> Cleaning xz
—> Fetching distfiles for zlib
—> Verifying checksums for zlib
—> Extracting zlib
—> Configuring zlib
—> Building zlib
—> Staging zlib into destroot
—> Installing zlib @1.2.11_0
—> Activating zlib @1.2.11_0
—> Cleaning zlib
—> Fetching distfiles for pcre
—> Verifying checksums for pcre
—> Extracting pcre
—> Applying patches to pcre
—> Configuring pcre
—> Building pcre
—> Staging pcre into destroot
—> Installing pcre @8.41_1
—> Activating pcre @8.41_1
—> Cleaning pcre
—> Fetching archive for pkgconfig
—> Attempting to fetch pkgconfig-0.29.2_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/pkgconfig
—> Attempting to fetch pkgconfig-0.29.2_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/pkgconfig
—> Installing pkgconfig @0.29.2_0
—> Activating pkgconfig @0.29.2_0
—> Cleaning pkgconfig
—> Fetching distfiles for glib2
—> Verifying checksums for glib2
—> Extracting glib2
—> Applying patches to glib2
—> Configuring glib2
Warning: reinplace s|global_symbol_pipe=»»|global_symbol_pipe=»cat»|g didn’t change anything in /opt/local/var/macports/build/_opt_local_site-ports_devel_glib2/glib2/work/glib-2.56.0/libtool
—> Building glib2
—> Staging glib2 into destroot
—> Installing glib2 @2.56.0_0+x11
—> Activating glib2 @2.56.0_0+x11
—> Cleaning glib2
—> Fetching archive for libpsl
—> Attempting to fetch libpsl-0.20.2-20180522_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libpsl
—> Attempting to fetch libpsl-0.20.2-20180522_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libpsl
—> Installing libpsl @0.20.2-20180522_0
—> Activating libpsl @0.20.2-20180522_0
—> Cleaning libpsl
—> Fetching archive for openssl
—> Attempting to fetch openssl-1.0.2p_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/openssl
—> Attempting to fetch openssl-1.0.2p_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/openssl
—> Installing openssl @1.0.2p_0
—> Activating openssl @1.0.2p_0
—> Cleaning openssl
—> Fetching archive for curl
—> Attempting to fetch curl-7.61.1_0+ssl.darwin_18.x86_64.tbz2 from https://packages.macports.org/curl
—> Attempting to fetch curl-7.61.1_0+ssl.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/curl
—> Installing curl @7.61.1_0+ssl
—> Activating curl @7.61.1_0+ssl
—> Cleaning curl
—> Fetching archive for expat
—> Attempting to fetch expat-2.2.6_1.darwin_18.x86_64.tbz2 from https://packages.macports.org/expat
—> Attempting to fetch expat-2.2.6_1.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/expat
—> Installing expat @2.2.6_1
—> Activating expat @2.2.6_1
—> Cleaning expat
—> Fetching archive for libxml2
—> Attempting to fetch libxml2-2.9.7_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libxml2
—> Attempting to fetch libxml2-2.9.7_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libxml2
—> Installing libxml2 @2.9.7_0
—> Activating libxml2 @2.9.7_0
—> Cleaning libxml2
—> Fetching archive for lz4
—> Attempting to fetch lz4-1.8.3_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/lz4
—> Attempting to fetch lz4-1.8.3_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/lz4
—> Installing lz4 @1.8.3_0
—> Activating lz4 @1.8.3_0
—> Cleaning lz4
—> Fetching archive for lzo2
—> Attempting to fetch lzo2-2.10_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/lzo2
—> Attempting to fetch lzo2-2.10_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/lzo2
—> Installing lzo2 @2.10_0
—> Activating lzo2 @2.10_0
—> Cleaning lzo2
—> Fetching archive for libarchive
—> Attempting to fetch libarchive-3.3.3_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libarchive
—> Attempting to fetch libarchive-3.3.3_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libarchive
—> Installing libarchive @3.3.3_0
—> Activating libarchive @3.3.3_0
—> Cleaning libarchive
—> Fetching archive for libuv
—> Attempting to fetch libuv-1.23.1_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libuv
—> Attempting to fetch libuv-1.23.1_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libuv
—> Installing libuv @1.23.1_0
—> Activating libuv @1.23.1_0
—> Cleaning libuv
—> Fetching archive for sparsehash
—> Attempting to fetch sparsehash-2.0.3_1.darwin_18.x86_64.tbz2 from https://packages.macports.org/sparsehash
—> Attempting to fetch sparsehash-2.0.3_1.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/sparsehash
—> Installing sparsehash @2.0.3_1
—> Activating sparsehash @2.0.3_1
—> Cleaning sparsehash
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port afsctool failed
—> Some of the ports you installed have notes:
libpsl has the following notes:
libpsl API documentation is provided by the port ‘libpsl-docs’.
Home:~ Henrietta$

@RJVB

Did this take as long as it did with PortAuthority?

Still, we got further now. With a bit of luck the output from the following command will help me understand the problem:

%> sudo port -vd install afsctool

Just copy the output here, there shouldn’t be too much now.

@Henrietta1989

It was faster.

Home:~ Henrietta$ sudo port -vd install afsctool
Password:
DEBUG: Copying /Users/Henrietta/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: Changing to port directory: /opt/local/site-ports/sysutils/afsctool
DEBUG: OS darwin/18.0.0 (Mac OS X 10.14) arch i386
DEBUG: Re-registering default for destroot.target
DEBUG: Re-registering default for configure.dir
DEBUG: Re-registering default for build.dir
DEBUG: Re-registering default for configure.pre_args
DEBUG: Sourcing PortGroup cmake 1.1 from /opt/local/site-ports/_resources/port1.0/group/cmake-1.1.tcl
DEBUG: Sourcing PortGroup github 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/github-1.0.tcl
DEBUG: Sourcing PortGroup compress_workdir 1.0 from /opt/local/site-ports/_resources/port1.0/group/compress_workdir-1.0.tcl
DEBUG: Re-registering default for livecheck.url
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: dropping privileges: euid changed to 502, egid changed to 502.
DEBUG: Starting logging for afsctool
DEBUG: macOS 10.14 (darwin/18.0.0) arch i386
DEBUG: MacPorts 2.5.4
DEBUG: Xcode 10.0
DEBUG: SDK 10.14
DEBUG: MACOSX_DEPLOYMENT_TARGET: 10.14
DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: zlib 1.2.11_0 exists in the ports tree
DEBUG: zlib 1.2.11_0 is the latest installed
DEBUG: zlib 1.2.11_0 is active
DEBUG: Merging existing variants » into variants
DEBUG: new fully merged portvariants:
DEBUG: Changing to port directory: /opt/local/site-ports/archivers/zlib
DEBUG: OS darwin/18.0.0 (Mac OS X 10.14) arch i386
DEBUG: Sourcing PortGroup xcodeversion 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/xcodeversion-1.0.tcl
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! zlib 1.2.11_0 >= zlib 1.2.11_0
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: sparsehash 2.0.3_1 exists in the ports tree
DEBUG: sparsehash 2.0.3_1 is the latest installed
DEBUG: sparsehash 2.0.3_1 is active
DEBUG: Merging existing variants » into variants
DEBUG: new fully merged portvariants:
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/sparsehash
DEBUG: OS darwin/18.0.0 (Mac OS X 10.14) arch i386
DEBUG: Sourcing PortGroup github 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/github-1.0.tcl
DEBUG: Re-registering default for livecheck.regex
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! sparsehash 2.0.3_1 >= sparsehash 2.0.3_1
—> Computing dependencies for afsctool
DEBUG: afsctool has no conflicts
DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$
DEBUG: Searching for dependency: git
DEBUG: Didn’t find receipt, going to depspec regex for: git
DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$
DEBUG: Searching for dependency: cmake
DEBUG: Didn’t find receipt, going to depspec regex for: cmake
DEBUG: Changing to port directory: /opt/local/site-ports/devel/cmake
DEBUG: OS darwin/18.0.0 (Mac OS X 10.14) arch i386
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Sourcing PortGroup muniversal 1.0 from /opt/local/site-ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
DEBUG: compiler clang 1000.11.45.2 not blacklisted because it doesn’t match {clang < 500}
DEBUG: Sourcing PortGroup cxx11 1.1 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/cxx11-1.1.tcl
DEBUG: blacklisting macports-clang-3.8 because it might need us for installation
DEBUG: blacklisting macports-clang-3.9 because it might need us for installation
DEBUG: blacklisting macports-clang-4.0 because it might need us for installation
DEBUG: blacklisting macports-clang-5.0 because it might need us for installation
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: Searching for dependency: zlib
DEBUG: Found Dependency: receipt exists for zlib
DEBUG: Searching for dependency: sparsehash
DEBUG: Found Dependency: receipt exists for sparsehash
DEBUG: Checking for conflicts against cmake
DEBUG: Searching for dependency: cmake-devel
DEBUG: Didn’t find receipt, going to depspec regex for: cmake-devel
DEBUG: Searching for dependency: libcxx
DEBUG: Didn’t find receipt, going to depspec regex for: libcxx
DEBUG: Changing to port directory: /opt/local/site-ports/lang/libcxx
DEBUG: OS darwin/18.0.0 (Mac OS X 10.14) arch i386
DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
DEBUG: Re-registering default for destroot.target
DEBUG: Re-registering default for configure.dir
DEBUG: Re-registering default for build.dir
DEBUG: Re-registering default for configure.pre_args
DEBUG: Sourcing PortGroup cmake 1.1 from /opt/local/site-ports/_resources/port1.0/group/cmake-1.1.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Executing variant universal provides universal
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: Searching for dependency: curl
DEBUG: Found Dependency: receipt exists for curl
DEBUG: Searching for dependency: expat
DEBUG: Found Dependency: receipt exists for expat
DEBUG: Searching for dependency: bzip2
DEBUG: Found Dependency: receipt exists for bzip2
DEBUG: Searching for dependency: libarchive
DEBUG: Found Dependency: receipt exists for libarchive
DEBUG: Searching for dependency: ncurses
DEBUG: Found Dependency: receipt exists for ncurses
DEBUG: Searching for dependency: libuv
DEBUG: Found Dependency: receipt exists for libuv
DEBUG: libcxx has no conflicts
DEBUG: Searching for dependency: xz
DEBUG: Found Dependency: receipt exists for xz
DEBUG: Searching for dependency: libedit
DEBUG: Found Dependency: receipt exists for libedit
DEBUG: Searching for dependency: libffi
DEBUG: Found Dependency: receipt exists for libffi
DEBUG: Searching for dependency: libxml2
DEBUG: Found Dependency: receipt exists for libxml2
The following dependencies will be installed:
cmake
libcxx
Continue? [Y/n]: y
DEBUG: dlist_eval: all entries in dependency list have unsatisfied dependencies; can’t process
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port afsctool failed
Home:~ Henrietta$

@RJVB

OKKKK, I think I understand now. There was probably a dependency conflict in my version of ports cmake and libcxx which resulted in them not installing correctly:

>The following dependencies will be installed:
> cmake
> libcxx
>Continue? [Y/n]: y
>DEBUG: dlist_eval: all entries in dependency list have unsatisfied dependencies; can’t process
>Error: Follow https://guide.macports.org/#project.tickets to report a bug.
>Error: Processing of port afsctool failed

This is a good time to try if

%> port selfupdate

works without errors. If all is well you should see that it pulls new versions into /opt/local/site-ports . It may give a permissions error, in which case you’d have to do the `sudo -u macports` prefix trick (and tell me about it!)

Afterwards,

%> port info cmake libcxx

should show that cmake no longer depends on libcxx and that libcxx no longer depends on cmake. If that is not the case, please tell me, and do

%> sudo -u macports git -C /opt/local/site-ports pull

Afterwards, do

%> sudo port clean cmake libcxx

just to be sure, and then do

%> sudo port install afsctool

If that fails again, then please repeat the earlier command to get output:

%> sudo port -vd install afsctool

Thanks again for your patience! I hope you appreciate learning a little bit more about this kind of computer usage ;)

@Henrietta1989

Home:~ Henrietta$ port selfupdate
Error: Insufficient privileges to write to MacPorts install prefix.
Home:~ Henrietta $ sudo -u macports port selfupdate
Password:
Error: Insufficient privileges to write to MacPorts install prefix.
Home:~ Henrietta $

@RJVB

Oh my.

I do this so infrequently myself that I forgot that it is indeed the official way to do this with elevated privileges (https://www.macports.org/install.php). So my bad, you have to do

%> sudo port -v selfupdate

(`sudo -u macports foo` executes a command «foo» as the macports user, while `sudo foo` executes that command as the «superuser», aka root.)

@Henrietta1989

For some reason i didn’t get notification for your above post at all.

sudo port -v selfupdate

Last rows of log:

—> MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated

@RJVB

> —> MacPorts base is already the latest version

OK, that suggests that updating of 3rd party repositories doesn’t work, or maybe never worked.

So, you’d have to follow the instructions for updating macstrop manually:

%> sudo -u macports git -C /opt/local/site-ports pull

this should some a list of updated files (which in themselves probably won’t mean much to you). Note that this git command must run as the macports user because /opt/local/site-ports is still owned by that user.

Then, follow the advice you saw:

%> sudo port upgrade outdated

And then … try again to install afsctool as shown before.

@Henrietta1989

Should i now run sudo port upgrade outdated and then install…

Home:~ Henrietta$ sudo -u macports git -C /opt/local/site-ports pull
Password:
fatal: unable to access 'http://github.com/RJVB/macstrop.git/': Empty reply from server
Home:~ Henrietta$ sudo -u macports git -C /opt/local/site-ports pull
warning: redirecting to https://github.com/RJVB/macstrop.git/
Already up to date.
Home:~ Henrietta$ sudo -u macports git -C /opt/local/site-ports pull
warning: redirecting to https://github.com/RJVB/macstrop.git/
Already up to date.

@RJVB

Should i now run sudo port upgrade outdated and then install…

Yes…

@Henrietta1989

I did now sudo port upgrade outdated but not sure anymore what install instructions to use?

Just this?

sudo port install afsctool

@RJVB

Sorry, yes.

If ever that fails again then do

%> sudo port -vd install afsctool

to get the relevant failure output directly.

BTW, if you do

%> sudo -u macports git -C /opt/local/site-ports describe

you should see this as output:
KF5.Plasma-5.10.2-1731-g448bc8ce

@Henrietta1989

Building cmake row takes really long:

sudo port install afsctool
Password:
—> Computing dependencies for afsctool
The following dependencies will be installed: cmake
Continue? [Y/n]: y
—> Fetching distfiles for cmake
—> Attempting to fetch cmake-3.12.3.tar.gz from https://cmake.org/files/v3.12/
—> Attempting to fetch cmake-3.12.3.tar.gz from https://distfiles.macports.org/cmake
—> Verifying checksums for cmake
—> Extracting cmake
—> Applying patches to cmake
—> Configuring cmake
—> Building cmake

@RJVB

on my 2011 MBP it takes about 20 minutes I think. I’m a bit surprised it would build from source for you but there must be an explanation for that.
The good news is that it shouldn’t be required very often.

@Henrietta1989

First it failed then i think it worked. Last is «fatal: No tags can describe».

Home:~ Henrietta$ sudo port install afsctool
Password:
—> Computing dependencies for afsctool
The following dependencies will be installed: cmake
Continue? [Y/n]: y
—> Fetching distfiles for cmake
—> Attempting to fetch cmake-3.12.3.tar.gz from https://cmake.org/files/v3.12/
—> Attempting to fetch cmake-3.12.3.tar.gz from https://distfiles.macports.org/cmake
—> Verifying checksums for cmake
—> Extracting cmake
—> Applying patches to cmake
—> Configuring cmake
—> Building cmake
—> Staging cmake into destroot
—> Installing cmake @3.12.3_0
—> Activating cmake @3.12.3_0
—> Cleaning cmake
—> Fetching distfiles for afsctool
Error: Failed to fetch afsctool: Git clone failed
Error: See /opt/local/var/macports/logs/_opt_local_site-ports_sysutils_afsctool/afsctool/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port afsctool failed
Home:~ Henrietta$ sudo port install afsctool
Password:
—> Computing dependencies for afsctool
—> Fetching distfiles for afsctool
—> Verifying checksums for afsctool
—> Extracting afsctool
—> Configuring afsctool
—> Building afsctool
—> Staging afsctool into destroot
—> Installing afsctool @1.6.9.8_0
—> Activating afsctool @1.6.9.8_0
—> Cleaning afsctool
—> Scanning binaries for linking errors
—> No broken files found.
—> No broken ports found.
Home:~ Henrietta$ sudo -u macports git -C /opt/local/site-ports describe
fatal: No tags can describe ‘448bc8ce88ed453cd6ddd3e1bff610057ad47ab2’.
Try —always, or create some tags.
Home:~ Henrietta$

@RJVB

>—> Fetching distfiles for afsctool
>Error: Failed to fetch afsctool: Git clone failed
>Error: See /opt/local/var/macports/logs/_opt_local_site-ports_sysutils_afsctool/afsctool/main.log for details.

This is strange, but can have been a temporary network glitch.

>Home:~ Henrietta$ sudo -u macports git -C /opt/local/site-ports describe
>fatal: No tags can describe ‘448bc8ce88ed453cd6ddd3e1bff610057ad47ab2’.
>Try —always, or create some tags.

Ah, well that’s fine too.

So now you should be able to run afsctool :)

@Henrietta1989

Yes it works now perfectly!!! Thanks!!!

Did all that install any not needed stuff i could clean out using some CLI magic?

@RJVB

Great! Thanks for your patience!

You can clean up whatever there’s left to clean up with

%> sudo port clean —all installed

Понравилась статья? Поделить с друзьями:
  • Error insufficient permission for adding an object to repository database git objects
  • Error insufficient pci resources detected как исправить
  • Error insufficient memory как исправить принтер
  • Error insufficient memory reserved for statement
  • Error insufficient memory please check the virtual memory option and avilable hard drive space