Opened 11 years ago

Closed 11 years ago

#41758 closed defect (worksforme)

expat: error deleting "/opt/local/var/macports/distfiles/expat/expat-2.0.1.tar.gz.TMP": permission denied

Reported by: nivedita900@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: expat

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello, I am try to install wine 1.2 on Mac 10.8 (Mountain Lion).

sudo port install wine-devel 

The above command fails when trying to install the dependency, expat. I am running these as user root. I tried installing expat alone :

sudo port clean expat
sudo port uninstall expat (didn't do anything because it isn't installed)
sudo port install -d expat

I have attached the logs of the command to install expat. The expat-2.0.1.tar.gz file was downloaded successfully

/opt/local/var/macports/distfiles/expat/
-rwx------  1 macports  admin  446456 Jul 21  2010 expat-2.0.1.tar.gz
-rwx------  1 macports  admin    1916 Jul 21  2010 Portfile

Error message :

:notice:fetch --->  Attempting to fetch expat-2.0.1.tar.gz from http://downloads.sourceforge.net/expat
:debug:fetch Fetching distfile failed: Permission denied
:error:fetch org.macports.fetch for port expat returned: error deleting "/opt/local/var/macports/distfiles/expat/expat-2.0.1.tar.gz.TMP": permission denied
:debug:fetch Error code: POSIX EACCES {permission denied}

Could you please suggest what needs to be done? Thank you.

Attachments (1)

main.log (2.1 KB) - added by nivedita900@… 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by nivedita900@…

Attachment: main.log added

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: expat fetchfiles removed
Owner: changed from macports-tickets@… to ryandesign@…
Summary: Wine installation failing trying to install expatexpat: error deleting "/opt/local/var/macports/distfiles/expat/expat-2.0.1.tar.gz.TMP": permission denied
Type: requestdefect

Why does the directory /opt/local/var/macports/distfiles/expat/ contain a Portfile?

Why are the permissions on the files in /opt/local/var/macports/distfiles/expat/ -rwx------ instead of -rw-r--r--? That's wrong.

Note that in MacPorts, the wine port is at version 1.6.1 and the wine-devel port is at version 1.7.8. So you won't be getting wine version 1.2, but that's ok; you should probably be using the latest stable version anyway.

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Also, note that you apparently downloaded the expat-2.0.1.tar.gz distfile in June of 2010. So whatever caused this permission error may have been a problem on your computer then but might no longer be a problem. You could delete the directory /opt/local/var/macports/distfiles/expat/ and try again. If other directories in /opt/local/var/macports/distfiles/ have similar unusual permissions you could delete them too. MacPorts will re-download distfiles as needed.

comment:3 Changed 11 years ago by nivedita900@…

Thank you very much. Cleaning out the distfiles folder and correcting the permissions worked. I have now installed wine-devel 1.7.7 successfully.

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

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.