Error Unable To Execute Port Could Not Open File
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Previous version of CGAL with Macports: “Error: Unable to execute port: Could not open file” up vote 1 down vote favorite I'm trying to install a previous port of cgal with macports. I'm following this How-to: http://trac.macports.org/wiki/howto/InstallingOlderPort I already read this answer but it didn't solve for me. (Unable to execute port when installing ImageMagick) -- Setting read permissions for macports user in /opt -- This is what i have done: svn co -r 102134 http://svn.macports.org/repository/macports/trunk/dports/gis/cgal sudo chown -R macports:macports cgal/ cd cgal sudo chmod 777 Portfile sudo port install This is the error that i get Error: Unable to execute port: Could not open file: /Users/#######/Downloads/cgal/Portfile What am I doing wrong? osx macports chmod chown share|improve this question asked May 22 '13 at 23:44 SolidSnake 169111 I also tried to set macports user in the /opt/local/etc/macports/macports.conf file to "root". Does the .conf file have to be reloaded in some ways? –SolidSnake May 22 '13 at 23:47 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted Ok managed how to solve: sudo mv cgal /private/tmp cd /private/tmp sudo port install share|improve this answer answered May 23 '13 at 0:08 SolidSnake 169111 add a comment| up vote -1 down vote I actually changed the permissions of /tmp as follows: sudo chmod 755 /tmp share|improve this answer edited Jan 10 '14 at 20:35 Jawa 2,81582032 answered Jan 10 '14 at 19:53 user288900 1 So this is not working for you? –SolidSnake Jan 10 '14 at 20:04 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Brows
SCAP-on-Apple SmartCard Services WebKit XQuartz Contact Terms of Use Privacy Policy All user-submitted text and content on this website is licensed under a Creative Commons Attribution 2.5 License unless otherwise noted. Copyright © 2011 Apple Inc. All rights reserved. New Ticket Tickets Wiki Browse Source Timeline Roadmap Ticket Reports Search Search: Context Navigation ← Previous TicketNext Ticket → Ticket #38472 (closed defect: invalid) Opened 4 years ago Last modified 4 years ago ImageMagick install failure: unable to execute port Reported by: shirleyberry@… http://superuser.com/questions/598824/previous-version-of-cgal-with-macports-error-unable-to-execute-port-could-no Owned by: ryandesign@… Priority: Normal Milestone: Component: ports Version: 2.1.3 Keywords: Cc: Port: ImageMagick Description Installing imagemagick on osx 10.7.5 Lion. When I run sudo port install imagemagick I get the error Error: Unable to execute port: Could not open file: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/ImageMagick/Portfile Change History comment:1 Changed 4 years ago by shirleyberry@… Cc shirleyberry@… added Cc Me! comment:2 follow-up: ↓ 3 Changed 4 years ago by larryv@… Status https://trac.macports.org/ticket/38472 changed from new to closed Cc shirleyberry@… removed Resolution set to invalid You don’t seem to have a ports tree. Make sure you have installed the latest version of Apple’s Command Line Tools by starting Xcode and going to Xcode > Preferences > Downloads > Components. Then run sudo port selfupdate to retrieve the latest ports tree, and try installing imagemagick again. comment:3 in reply to: ↑ 2 Changed 4 years ago by shirleyberry@… Replying to larryv@…: You don’t seem to have a ports tree. Make sure you have installed the latest version of Apple’s Command Line Tools by starting Xcode and going to Xcode > Preferences > Downloads > Components. Then run sudo port selfupdate to retrieve the latest ports tree, and try installing imagemagick again. I did install apple's command line tools, and ran port selfupdate, and port upgrade outdated. When I run it, it says I have the latest version. comment:4 Changed 4 years ago by shirleyberry@… Cc shirleyberry@… added Cc Me! comment:5 Changed 4 years ago by shirleyberry@… Status changed from closed to reopened Resolution invalid deleted comment:6 Changed 4 years ago by ryandesign@… Cc shirleyberry@… removed Owner changed from macports-tickets@
SCAP-on-Apple SmartCard Services WebKit XQuartz Contact Terms of Use Privacy Policy All user-submitted text and content on this website is licensed under a Creative Commons Attribution 2.5 License unless otherwise https://trac.macports.org/ticket/41932 noted. Copyright © 2011 Apple Inc. All rights reserved. New Ticket Tickets Wiki Browse Source Timeline Roadmap Ticket Reports Search Search: Context Navigation ← Previous TicketNext Ticket → Ticket #41932 (closed defect: worksforme) Opened 3 years ago Last modified 3 years ago Mavericks 10.9 - Could not open Portfile Reported error unable by: mkbriney@… Owned by: macports-tickets@… Priority: Normal Milestone: Component: ports Version: 2.2.1 Keywords: Cc: ryandesign@… Port: Description (last modified by ryandesign@…) (diff) When I try and install anything using sudo port install xxx I get the following error: Error: Unable to execute port: Could not open file: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/sysutils/xxx/Portfile I am running the latest version of MacPorts (2.2.1) on OSX 10.9.1. I have tried performing a error unable to sync of the sources tree, even in debug mode. Attachments debug.txt (573 bytes) - added by mkbriney@… 3 years ago. Debug log Change History Changed 3 years ago by mkbriney@… Attachment debug.txt added Debug log comment:1 Changed 3 years ago by ryandesign@… Description modified (diff) Sounds like the permissions of your ports tree are incorrect. No idea why that would be, but you'll need to fix them. Reasonable permissions would be for directories to be 755 and files to be 644, so you could run: sudo echo find /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports -type d -print0 | xargs -0 sudo chmod 755 find /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports -type f -print0 | xargs -0 sudo chmod 644 comment:2 Changed 3 years ago by mkbriney@… Permissions are still resulting in the same problem. I even set the permissions to everything in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports to be 777 for folders and files and still the same error message applies. comment:3 Changed 3 years ago by ryandesign@… Look at the permissions of all of the directories leading up to the problem file. They must all be set so that the macports user can read them (i.e. 755). So, check /opt, /opt/local, /opt/local/var, etc. comment:4