Skip to content
Prev 8173 / 15076 Next

gfortran, tclck and /usr/local

On Jul 11, 2011, at 12:05 PM, Federico Calboli wrote:

            
I suppose you mean GNU Fortran - but which one? The recent ones live along Xcode so the answer would be none. If you have the older, separate Fortran then it has an uninstaller script that lists all files - it should be in /usr/local/bin/gfortran-uninstall or you can consult pkgutils (see below).

As for tcltk, this is the list of its files in /usr/local/lib:
Tktable2.9
libtcl8.5.dylib
libtclstub8.5.a
libtk8.5.dylib
libtkstub8.5.a
tcl8
tcl8.5
tclConfig.sh
tk8.5
tkConfig.sh

But in either case, you can check installed files very easily using pkgutil - it is very powerful and can tell you which files are installed by whom and vice versa.
For example:

Fino:~$ pkgutil --file-info /usr/local/lib/tclConfig.sh 
volume: /
path: /usr/local/lib/tclConfig.sh

pkgid: org.r-project.other.tcltk.x11
pkg-version: 8.5.5
install-time: 1224629182
uid: 0
gid: 0
mode: 644

Fino:~$ pkgutil --files org.r-project.other.tcltk.x11
usr
usr/local
usr/local/bin
usr/local/bin/tclsh8.5
usr/local/bin/wish8.5
usr/local/include
usr/local/include/tcl.h
usr/local/include/tclDecls.h
usr/local/include/tclPlatDecls.h
usr/local/include/tclTomMath.h
usr/local/include/tclTomMathDecls.h
usr/local/include/tk.h
[...]


Fino:~$ pkgutil --files org.r-project.mac.tools.gfortran
usr
usr/local
usr/local/bin
usr/local/bin/gfortran
usr/local/bin/gfortran-4.0
usr/local/bin/gfortran-4.2
usr/local/bin/gfortran-uninstall
usr/local/bin/i686-apple-darwin8-gfortran-4.2
usr/local/bin/powerpc-apple-darwin8-gfortran-4.2


Cheers,
Simon