Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#31361 closed defect (invalid)

Lion - selfupdate and .dmg not installing

Reported by: pablo@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.0.3
Keywords: Cc:
Port:

Description

Hi there,

I have upgraded my MBP to Lion and installed the new version of the Xcode.

I'm trying to install the new version of Macports however I'm having some issues.

I first tried using sudo port selfupdate and because that didn't work, I tried installing the from the .dmg that I downloaded from macports.org website (macport 2.0.3 for Lion).

I'm adding a extract of the result of sudo port -v selfupdate

checking for xcode-select... no
checking Mac OS X version... 10.7.1
checking Xcode version... 3.2.6
checking for gcc... /usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base':
configure: error: C compiler cannot create executables
See `config.log' for more details
shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install" returned error 77
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)

The installer inside the .dmg is also throwing an error, most likely for the same reason. I can attach a screenshot if you require it.

Thanks in advance.

Change History (5)

comment:1 Changed 13 years ago by pablo@…

Cc: pablo@… added

Cc Me!

comment:2 Changed 13 years ago by pablo@…

Cc: pablo@… removed

Cc Me!

comment:3 Changed 13 years ago by neverpanic (Clemens Lang)

Keywords: selfupdate removed

Did you run Install Xcode.app after downloading it from the App Store? (Yes, in violation of their own guidelines, after you "install" Xcode from the App Store you actually have to install it.)

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

The log you provided clearly shows you're running Xcode 3.2.6 which is for Snow Leopard. For Lion, install Xcode 4.1, using cal's instructions above.

comment:5 Changed 13 years ago by pablo@…

Thanks man. I can believe this.

You are completely right, I found the Install Xcode in my Applications folder.. I downloaded and in the app store was showing that it's installed. However it's not. I've now installed it and everything seems to be working again.

Thanks for your help again.

Note: See TracTickets for help on using tickets.