Pergunta

I am planning to try D for the first time in my life. I have a MacBook Pro running OS X 10.6.8 (Snow Leopard).

I went on the D downloads page and clicked on the link for the dmd 2.060 installer for OS X. I opened it and double clicked on the "DMD2.pkg" file within it. The installer came up with some text including a line that read "This package is intended for Mac OS X Leopard (10.5) only.". I tried to find a version for OS X 10.6 but I couldn't, so I ignored the warning and clicked "Continue".

I clicked through the agreements and questions, and then when it finished, the installer gave this message:

The installation failed. The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

Someone on the forums suggested running the Console app when trying to install D. I tried that and got these messages:

9/17/12 7:33:35 PM  Installer[19715]    PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-api.pkg
9/17/12 7:33:35 PM  Installer[19715]    PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-bin.pkg
9/17/12 7:33:35 PM  Installer[19715]    PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-gui.pkg
9/17/12 7:33:35 PM  Installer[19715]    PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-kext.pkg
9/17/12 7:33:35 PM  Installer[19715]    PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-profiles.pkg
9/17/12 7:33:35 PM  Installer[19715]    PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-startup.pkg
9/17/12 7:33:54 PM  installd[19720] Starting
9/17/12 7:33:54 PM  installd[19720] uid=501, euid=501
9/17/12 7:33:54 PM  installd[19720] PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-api.pkg
9/17/12 7:33:55 PM  installd[19720] PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-bin.pkg
9/17/12 7:33:55 PM  installd[19720] PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-gui.pkg
9/17/12 7:33:55 PM  installd[19720] PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-kext.pkg
9/17/12 7:33:55 PM  installd[19720] PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-profiles.pkg
9/17/12 7:33:55 PM  installd[19720] PackageKit: *** Missing bundle identifier: /Library/Receipts/vpnclient-startup.pkg
9/17/12 7:33:57 PM  com.apple.installd.user[19720]  Permission denied
9/17/12 7:33:57 PM  Installer[19715]    The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

I asked about it on the digitalmars.D.learn forum. I am not sure if that was the most appropriate forum but I put it there because I am just starting to learn. I also filed a bug report on their tracker. You can see the bug report or the automatically-generated post on digitalmars.D.bugs but neither has gotten any responses yet.

Someone suggested using a 3rd-party program named DVM but I am feeling kind of reluctant about it. I don't see why I have to install a 3rd-party program, which is not mentioned anywhere in the documentation or on the download page AFAIK, just to install the compiler.

Does anyone know why this is happening or what I am supposed to do about it?

EDIT: Someone mentioned "vpnclient" in the comments. I used to have Cisco VPNClient installed for my previous job. However, I haven't had any use for it in over a year and I deleted it several months ago, at least. I don't remember the details of what version but if anyone needs to know, I can try to deduce that the next time I have access to my home computer.

EDIT 2: The above comment is partially wrong. I still have Cisco VPNClient 4.9.01.0180 on my computer, even though I haven't used it in over a year.

EDIT 3: I tried deleting VPNClient and I am still having the same problem. I still don't know for sure whether VPNClient has anything to do with the problem.

Foi útil?

Solução

I haven't used the Mac version, but you can probably use D the easiest way I prefer on other platforms: just grab the zip and use it in place.

https://github.com/downloads/D-Programming-Language/dmd/dmd.2.060.zip

unzip it anywhere, then use it directly from the unzipped folder.

from your console

$ wget https://github.com/downloads/D-Programming-Language/dmd/dmd.2.060.zip
$ unzip dmd.2.060.zip
(then create your hello.d)
$ dmd2/osx/bin/dmd hello.d

Should work to produce your executable. I wouldn't bother with any fancier installation, it seems to cause more trouble than it's worth.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top