Opened 15 years ago

Closed 15 years ago

#21831 closed defect (duplicate)

calc 2.12.4.0 on snow leopard error

Reported by: duanhuaiyu@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: calc

Description

It builds OK but gives the following message when type "calc":

dyld: Library not loaded: /opt/local/lib/libcalc.2.12.4.0.dylib

Referenced from: /opt/local/bin/calc Reason: no suitable image found. Did find:

/opt/local/lib/libcalc.2.12.4.0.dylib: open() failed with errno=13

Trace/BPT trap

Change History (3)

comment:1 Changed 15 years ago by blb@…

Port: calc added

Works fine here, considering errno 13 is permission denied, what is the result from the following?

$ ls -l /opt/local/lib/libcalc.2.12.4.0.dylib
$ umask

comment:2 in reply to:  1 ; Changed 15 years ago by duanhuaiyu@…

The relevant library files have permission "rwx------". The program works fine after applying "chmod a+rx" to the libraries.

The command umask gives "0077". I also have to fix the permissions of some library files when I install some python modules. Does it mean I cannot use this mask and sudo to install macports anymore? The files under /opt/local/bin do have the right permissions.

comment:3 in reply to:  2 Changed 15 years ago by blb@…

Resolution: duplicate
Status: newclosed

Replying to duanhuaiyu@…:

The command umask gives "0077". I also have to fix the permissions of some library files when I install some python modules. Does it mean I cannot use this mask and sudo to install macports anymore? The files under /opt/local/bin do have the right permissions.

The issue is that sudo on 10.6 now keeps your current umask, so when you 'sudo port install ...' the umask during that install will be the same as yours and cause some issues (depending on how the install is done).

Since this is due to the umask, dup of #21389.

Note: See TracTickets for help on using tickets.