Opened 10 years ago
Closed 10 years ago
#46878 closed update (invalid)
Error with the update from version 2.2.1 to 2.3.3
Reported by: | benjii.lac@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.2.1 |
Keywords: | Cc: | ||
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I installed Macports one year ago. I need library in order to run FreeFem on my MacBook.
It appears that I need to update it so I used the command sudo port selfupdate An error pops up and I didn't succeed to solve it. I precise that I'm new on computer science. I've few knowledges but not enough to understand everything yet.
So I took a look in the difference tickets (for example Ticket #46193) and try the command sudo port -v selfupdate
and I got this :
[...] sent 64 bytes received 636 bytes 280.00 bytes/sec total size is 512 speedup is 0.73 ---> MacPorts base is outdated, installing new version 2.3.3 Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl configure: WARNING: unrecognized options: --with-tclpackage checking build system type... i386-apple-darwin13.4.0 checking host system type... i386-apple-darwin13.4.0 checking target system type... i386-apple-darwin13.4.0 checking MacPorts version... 2.3.3 checking for sw_vers... /usr/bin/sw_vers checking for defaults... /usr/bin/defaults checking for xcode-select... /usr/bin/xcode-select checking Mac OS X version... 10.9.5 checking Xcode location... /Applications/Xcode.app/Contents/Developer checking Xcode version... 6.1.1 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 Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc OBJC=/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 SELFUPDATING=1 && make install SELFUPDATING=1 Exit code: 77 Error: Error installing new MacPorts base: command execution failed To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
Have you an idea of what is going wrong?
Change History (6)
comment:2 follow-up: 3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Component: | ports → base |
---|---|
Description: | modified (diff) |
comment:3 Changed 10 years ago by benjii.lac@…
Replying to ryandesign@…:
It sounds like you have not installed the Xcode command line tools.
I've install on January, 29 2015 the version 6.1 via App Store of Command Line Tools (OS X 10.9). I'm still running OS X Maverick. Do I have to install another plug in for Xcode?
comment:4 follow-up: 5 Changed 10 years ago by neverpanic (Clemens Lang)
Please attach /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/config.log
.
comment:5 follow-up: 6 Changed 10 years ago by benjii.lac@…
Replying to cal@…:
Please attach
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/config.log
.
I read this file, and I discovered that I didn't accept the agreements of xcode. So I type "sudo xcodebuild -license" and agree to them Then I type another "sudo port selfupdate" and it worked.
But then an issue appears :
mbp-de-benjamin:~ Benjamin$ sudo port selfupdate ---> Updating MacPorts base sources using rsync MacPorts base version 2.2.1 installed, MacPorts base version 2.3.3 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.3.3 Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated mbp-de-benjamin:~ Benjamin$ port upgrade outdated Error: Insufficient privileges to write to MacPorts install prefix.
How do we get privileges to write to MacPorts ?
comment:6 Changed 10 years ago by larryv (Lawrence Velázquez)
Replying to benjii.lac@…:
How do we get privileges to write to MacPorts ?
You need admin privileges for that too.
$ sudo port upgrade outdated
comment:7 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
It sounds like you have not installed the Xcode command line tools.