Skip to content

gfortran, tclck and /usr/local

6 messages · Simon Urbanek, Federico Calboli

#
Hi,

can I ask if anyone can tell me which of these files belongs to the Gfortran and tcltk R Mac tools instalation please:

:~$ ls -l /usr/local/lib
total 205784
drwxr-xr-x   4 root  wheel       136 15 Dec  2009 ImageMagick-6.5.8
drwxr-xr-x   4 root  wheel       136 17 Apr  2010 ImageMagick-6.6.1
drwxr-xr-x   8 root  wheel       272 14 Apr 13:16 Tktable2.9
drwxr-xr-x   4 root  wheel       136 21 Apr  2008 gcc
-rw-rw-r--   1 root  wheel    736903 24 Feb  2008 libgcc_s.1.dylib
-rw-rw-r--   1 root  wheel     33144 24 Feb  2008 libgcc_s.10.4.dylib
-rw-rw-r--   1 root  wheel     33508 24 Feb  2008 libgcc_s.10.5.dylib
lrwxr-xr-x   1 root  wheel        16 14 Apr 13:15 libgcc_s_ppc64.1.dylib -> libgcc_s.1.dylib
lrwxr-xr-x   1 root  wheel        16 14 Apr 13:15 libgcc_s_x86_64.1.dylib -> libgcc_s.1.dylib
-rwxrwxr-x   1 root  wheel   8094839 24 Feb  2008 libgfortran.2.0.0.dylib
lrwxr-xr-x   1 root  wheel        23 14 Apr 13:15 libgfortran.2.dylib -> libgfortran.2.0.0.dylib
-rw-rw-r--   1 root  wheel  13836364 24 Feb  2008 libgfortran.a
lrwxr-xr-x   1 root  wheel        23 14 Apr 13:15 libgfortran.dylib -> libgfortran.2.0.0.dylib
-rwxrwxr-x   1 root  wheel       779 24 Feb  2008 libgfortran.la
-rwxr-xr-x   1 root  wheel  27914344  4 Feb  2009 libgs.8.64.dylib
lrwxr-xr-x   1 root  wheel        16 18 Mar  2010 libgs.8.dylib -> libgs.8.64.dylib
lrwxr-xr-x   1 root  wheel        31 18 Mar  2010 libgs.dylib -> /usr/local/lib/libgs.8.64.dylib
-rw-r--r--   1 root  wheel  38619488 29 Sep  2009 libgsl.a
-rwxr-xr-x   1 root  wheel       871 29 Sep  2009 libgsl.la
-rw-r--r--   1 root  wheel   5569888 29 Sep  2009 libgslcblas.a
-rwxr-xr-x   1 root  wheel       884 29 Sep  2009 libgslcblas.la
-r-xr-xr-x   1 root  wheel   4820229 21 Oct  2008 libtcl8.5.dylib
-rw-r--r--   1 root  wheel     11072 21 Oct  2008 libtclstub8.5.a
-rwxr-xr-x   1 root  wheel   5602072 21 Oct  2008 libtk8.5.dylib
-rw-r--r--   1 root  wheel     14304 21 Oct  2008 libtkstub8.5.a
drwxrwxr-x   3 root  staff       102 29 Sep  2009 pkgconfig
drwxrwxr-x   6 root  wheel       204 14 Apr 13:15 ppc64
drwxr-xr-x   5 root  wheel       170 14 Apr 13:16 tcl8
drwxr-xr-x  18 root  wheel       612 14 Apr 13:16 tcl8.5
-rw-r--r--   1 root  wheel      7730 21 Oct  2008 tclConfig.sh
drwxr-xr-x  37 root  wheel      1258 14 Apr 13:16 tk8.5
-rw-r--r--   1 root  wheel      4017 21 Oct  2008 tkConfig.sh
drwxrwxr-x   6 root  wheel       204 14 Apr 13:15 x86_64


I would imagine that the two ImageMagick have nothing to do with R, and Tktable might also be unrelated. I am trying to see if any of these files/directoris can be removed, to avoid conflicts with homebrew.

Bw

F



--
Federico C. F. Calboli
Department of Epidemiology and Biostatistics
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG

Tel +44 (0)20 75941602   Fax +44 (0)20 75943193

f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com
#
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
#
On 11 Jul 2011, at 17:27, Simon Urbanek wrote:

            
I mean this one:

http://mirrors.dotsrc.org/cran/bin/macosx/tools/

Is this still needed or does the XCode fortran completely replace it?
$ pkgutil --file-info /usr/local/lib/tclConfig.sh 
volume: /
path: /usr/local/lib/tclConfig.sh

is all I get, possibly because my Mac is a 'time machine' installation of an older machine. Similarly:

$ pkgutil --files org.r-project.other.tcltk.x11
No receipt for 'org.r-project.other.tcltk.x11' found at '/'.

$ pkgutil --files org.r-project.other.tcltk.x11
No receipt for 'org.r-project.other.tcltk.x11' found at '/'.

Would it be reasonable to 

1) uninstall gfortran
2) rm -rf /usr/local/lib
3) reinstall from http://mirrors.dotsrc.org/cran/bin/macosx/tools/ both gfortran (if needed) and tcltk and see what happens?

bw

F




--
Federico C. F. Calboli
Department of Epidemiology and Biostatistics
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG

Tel +44 (0)20 75941602   Fax +44 (0)20 75943193

f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com
#
On 11 Jul 2011, at 17:27, Simon Urbanek wrote:

            
I just realised I should have used this GFortran all along:

http://r.research.att.com/tools/

 gfortran-42-5664.pkg

though I am on XCode 3.2.6, does that matter?

bw

F


--
Federico C. F. Calboli
Department of Epidemiology and Biostatistics
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG

Tel +44 (0)20 75941602   Fax +44 (0)20 75943193

f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com
#
On Jul 11, 2011, at 12:56 PM, Federico Calboli wrote:

            
No, Apple has made no changed to gcc for a while since they stopped using it, so you can safely use it with any recent Xcode 3.2.x version. You don't have to use it, but for SL it is recommended. Don't forget to run "sudo gfortran-uninstall" before you do so you don't have two different Fortran compilers on your machine - just to save some trouble.

Cheers,
Simon
#
On Jul 11, 2011, at 12:36 PM, Federico Calboli wrote:

            
It means that none of them were installed the usual way (via Apple Installer).
Sure, if you have no additional stuff in /usr/local, you can always blow it away.

Cheers,
Simon