On Jan 31, 2007, at 3:20 AM, flowctrl wrote:
Is there a way to manually edit the registry? Macports reports that ruby is installed, but it isn't. I'd like to install it.

You can manually remove the receipt (from /opt/local/var/db/dports/ receipts/ruby), but you may end up with other strange problems.

In general, it's not recommended to manually mess around with the registry even if you're sure you know what you are doing.

$ sudo port -vd installed | grep ruby
  ruby @1.8.5-p12_0

$ sudo port -vd uninstall ruby
--->  Uninstalling ruby 1.8.5-p12_0
DEBUG: skip missing file: /private/tmp/0
DEBUG: /private/tmp is not empty
DEBUG: /private is not empty
DEBUG: / is not empty
--->  Uninstall is removing ruby from the port registry.

$ sudo port -vd installed | grep ruby
  ruby @1.8.5-p12_0

That is strange, what does `port contents ruby` say?

$ sudo port -vdf install ruby
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/lang/ruby DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/lang/ruby
DEBUG: Requested variant i386 is not provided by port ruby.
DEBUG: Requested variant macosx is not provided by port ruby.
DEBUG: Executing variant darwin provides darwin
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/textproc/libiconv DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/textproc/libiconv
DEBUG: Searching for dependency: libiconv
DEBUG: Found Dependency: receipt exists for libiconv
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/readline DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/readline
DEBUG: Searching for dependency: readline
DEBUG: Found Dependency: receipt exists for readline
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/openssl DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/openssl
DEBUG: Searching for dependency: openssl
DEBUG: Found Dependency: receipt exists for openssl
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib
DEBUG: Searching for dependency: zlib
DEBUG: Found Dependency: receipt exists for zlib
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/ncurses DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/ncurses
DEBUG: Searching for dependency: ncurses
DEBUG: Found Dependency: receipt exists for ncurses
DEBUG: Skipping completed com.apple.main (ruby)
DEBUG: Skipping completed com.apple.unarchive (ruby)
DEBUG: Skipping completed com.apple.fetch (ruby)
DEBUG: Skipping completed com.apple.checksum (ruby)
DEBUG: Skipping completed com.apple.extract (ruby)
DEBUG: Skipping completed com.apple.patch (ruby)
DEBUG: Skipping completed com.apple.configure (ruby)
DEBUG: Skipping completed com.apple.build (ruby)
DEBUG: Skipping completed com.apple.destroot (ruby)
DEBUG: Skipping completed com.apple.archive (ruby)
--->  Installing ruby 1.8.5-p12_0
DEBUG: Executing com.apple.install (ruby)
Error: Target com.apple.install returned: Registry error: ruby 1.8.5-p12_0 already registered as installed. Please uninstall it first. Warning: the following items did not execute (for ruby): com.apple.activate com.apple.install
Error: Status 1 encountered during processing.
--
Daniel J. Luke
+========================================================+
| *---------------- [EMAIL PROTECTED] ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
|   Opinions expressed are mine and do not necessarily   |
|          reflect the opinions of my employer.          |
+========================================================+


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to