Re: mpich2 and python

2011-01-07 Thread Jason Swails
Hi Joerg,

MPICH2 uses python fairly extensively (the mpirun and mpiexec executables
are actually just python scripts, as are mpd/mpdboot).  Those developers
tend to hard-code the python version that they use into their execution
since they know that works and will be free of any new bugs that may get
introduced by new versions.  That's the same reason a lot of OS vendors
strap an old, stripped-out python distribution with their OS: their system
python utilities work just fine with that version and they're hesitant to
invest the time to ensure upwards compatibility (especially when Python
makes a jump like 2.x -> 3.x).  You should not change this to python2.7
because mpirun/mpiexec are unlikely to work, since the top line stays as:

#!/usr/bin/env /opt/local/bin/python2.5

(I made the change in the Portfile just to make sure)

MPI *stuff* are among the very few things I prefer to do myself (without
MacPorts, although the python's I add mpi4py to are MP versions), since it
allows me more flexibility.

You can also install the OpenMPI variant of mpi4py and avoid this issue
altogether.  I tend to use OpenMPI for my Macs, anyway (though I like mpich2
better for my Linux boxes, for no special reason, I get similar performance
out of both).

Happy tidings,
Jason

On Sat, Jan 8, 2011 at 1:02 AM, Jörg Frauendiener <
joerg.frauendie...@mac.com> wrote:

> I have recently come across a somewhat surprising issue:
> I installed py27-mpi4py which depends on mpich2 and python27. I was
> surprised to see that mpich2 itself depends on python25. Can someone explain
> to me why that should be the case? The same is true for py26-mpi4py.
>
> I have played around with the Portfile, replacing the references in mpich2
> to python25 with python27 and it installs perfectly. I have not done any
> other tests, though. So the question is: is this dependency on python25 a
> necessity or can it be replaced with python2[67]?
>
> Joerg
>
>
>
>
>   --
> Jorg Frauendiener | Tel.: +64-3-479-7770
> Mathematics & Statistics  | Fax:  +64-3-479-8427
> University of Otago   | joe...@maths.otago.ac.nz
> P.O. Box 56   | jorg.frauendie...@otago.ac.nz
> Dunedin 9010  | http://www.maths.otago.ac.nz
> Skype: frauendiener
>
>
> ___
> macports-users mailing list
> macports-users@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>
>


-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: mpich2 and python

2011-01-07 Thread Ryan Schmidt
On Jan 8, 2011, at 00:02, Jörg Frauendiener wrote:

> I installed py27-mpi4py which depends on mpich2 and python27. I was surprised 
> to see that mpich2 itself depends on python25. Can someone explain to me why 
> that should be the case? The same is true for py26-mpi4py. 
> 
> I have played around with the Portfile, replacing the references in mpich2 to 
> python25 with python27 and it installs perfectly. I have not done any other 
> tests, though. So the question is: is this dependency on python25 a necessity 
> or can it be replaced with python2[67]?

Perhaps variants could be added to mpich2 to let you select the desired python 
version. Or perhaps we should just update it to 2.7 as you say.

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


mpich2 and python

2011-01-07 Thread Jörg Frauendiener
I have recently come across a somewhat surprising issue:
I installed py27-mpi4py which depends on mpich2 and python27. I was surprised 
to see that mpich2 itself depends on python25. Can someone explain to me why 
that should be the case? The same is true for py26-mpi4py. 

I have played around with the Portfile, replacing the references in mpich2 to 
python25 with python27 and it installs perfectly. I have not done any other 
tests, though. So the question is: is this dependency on python25 a necessity 
or can it be replaced with python2[67]?

Joerg




--
Jorg Frauendiener | Tel.: +64-3-479-7770
Mathematics & Statistics  | Fax:  +64-3-479-8427
University of Otago   | joe...@maths.otago.ac.nz
P.O. Box 56   | jorg.frauendie...@otago.ac.nz
Dunedin 9010  | http://www.maths.otago.ac.nz
Skype: frauendiener

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Fwd: FATAL ERROR: Could not find mysqld & Missing Port 3306

2011-01-07 Thread David Gentry
Question [This question won't make sense until you read my previous email 
below.]

As I said below, the alias files -- mysql_install_db5, mysql5_config, etc. -- 
were in /opt/local/bin/ before I moved them to trash.  I found the original 
items for the aliases in /opt/local/lib/mysql5/bin/.  These originals do not 
have the "5" as part of the file name.

Should I add a "5" to the file names of the originals and determine if the 
setting up the main database commands at 
http://trac.macports.org/wiki/howto/MAMP#mysql will work?


Begin forwarded message:

From: David Gentry 
Date: January 7, 2011 2:39:52 PM CST
To: Ryan Schmidt 
Cc: MacPorts 
Subject: Re: FATAL ERROR: Could not find mysqld & Missing Port 3306

Your guess makes sense to me: the FATAL ERROR came from script that I did not 
successfully uninstall.  I ran "which mysql_install_db5" and the response was 
"/opt/local/bin/mysql_install_db5."  The file and a lot of other mysql files 
were in that directory and they were alias files.  I sent all of them to trash.

Then I returned to the web page you referred me to: 
http://trac.macports.org/wiki/howto/MAMP#mysql.

I ran the following commands as instructed to "set up the main database."  I 
separated the commands by semicolons.

sudo -u mysql mysql_install_db5 
sudo chown -R mysql:mysql /opt/local/var/db/mysql5/ 
sudo chown -R mysql:mysql /opt/local/var/run/mysql5/ 
sudo chown -R mysql:mysql /opt/local/var/log/mysql5/

The response was: "sudo: mysql_install_db5: command not found."

Then I ran the same four commands separated by "&".  I got the same result.

Then I ran the first command alone.  I got the same result.

Then I ran the following three commands as advised, "If that doesn't work try 
this":
sudo mysql_install_db5 
sudo chown -R mysql:mysql /opt/local/var/db/mysql5/ 
sudo chown -R mysql:mysql /opt/local/var/run/mysql5/
The result was the same: "sudo: mysql_install_db5: command not found."
Then I searched for "mysql_install_db5."  I found two Portfiles at the 
following locations:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5-server-devel/Portfile
/opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5-server/Portfile
Then I ran "which mysql_install_db5" and the result was to return me to the 
command prompt.
Background: A couple of days ago, when I tried to uninstall all disk image 
copies of MySQL, I also uninstalled MacPorts' "mysql5" and "mysql5-server."  
Then I installed the ports.  I got no error messages.  Then I ran "port 
selfupdate" and I did not get any error messages.
What does this information tell you?

On Jan 7, 2011, at 12:18 AM, Ryan Schmidt wrote:

On Jan 6, 2011, at 13:49, David Gentry wrote:

> Following your advice, I carefully tried to uninstall all previous disk image 
> versions of MySQL that I had downloaded from the MySQL web site.  Also, I 
> uninstalled mysql and mysql-server using sudo port uninstall.
> 
> I carefully followed the instructions on the web page you referred me to.  I 
> had no trouble until I tried to install the mysql main database.  Using both 
> commands given, I received the following reply:
> 
> "FATAL ERROR: Could not find mysqld
> 
> The following directories were searched:
> 
>/usr/local/mysql-5.5.6-rc-osx10.6-x86_64/libexec
>/usr/local/mysql-5.5.6-rc-osx10.6-x86_64/sbin
>/usr/local/mysql-5.5.6-rc-osx10.6-x86_64/bin
> 
> If you compiled from source, you need to run 'make install' to
> copy the software into the correct location ready for operation.
> 
> If you are using a binary release, you must either be at the top
> level of the extracted archive, or pass the --basedir option
> pointing to that location."

Whatever program or script generated that error message was not provided by 
MacPorts; MacPorts would not be looking for anything in 
/usr/local/mysql-5.5.6-rc-osx10.6-x86_64. I'm guessing it was provided by the 
software in that directory, which I'm guessing was not completely uninstalled.

What command did you run to get that message? something with 
mysql_install_db(5)? (It appears to be an error message that 
mysql_install_db(5) would produce.) If so, where is the mysql_install_db(5) it 
is finding -- what does "which mysql_install_db" (or "which mysql_install_db5") 
say? What is in your path -- what does "echo $PATH" say?


> I searched for "mysqld" on my Mac, and I found it installed yesterday (when I 
> was working from your referred instructions) in the following two locations:
> 
> /opt/local/libexec/mysqld
> 
> /opt/local/var/macports/software/mysql5/mysql5.1.51_0/opt/local/libexec/mysqld

Yes, those are where MacPorts would install it, so that's normal.



David J. Gentry
President
Good Things -- Small Packages, LLC
205-637-8000
dgen...@localbusinesswebsites.com
www.localbusinesswebsites.com







David J. Gentry
President
Good Things -- Small Packages, LLC
205-637-8000
dgen...@localbusinesswebsites.com
www.localbusinesswebsites.com






_

Re: Problems with gnuplot from marcports

2011-01-07 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 1/7/11 19:48 , Jason Swails wrote:
> Ha, I misread that.  I thought tedit was a program you aliased with open -e
> (not sure how I thought that worked).  Your way makes much more sense.  I
> like my vi, so I don't use open for text files in any case.  I only just
> learned about -e and -t when looking at the man page again.

There's always gvim :)
(although, why isn't there an aqua version?)

- -- 
brandon s. allbery [linux,solaris,freebsd,perl]  allb...@kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university  KF8NH
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0nvi8ACgkQIn7hlCsL25V60wCfSTvGTReTWuIhKW3pvgUGKObH
ShgAn3cuH2bmtzo2sWV/jDzjCoPnjplh
=Zn2v
-END PGP SIGNATURE-
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: nabi as default X11 input method

2011-01-07 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 1/6/11 01:37 , mihozu wrote:
> I did install nabi via port and add the "export XMODIFIERS="@im=nabi"
> to .profile and I can't get to input korean...

.profile isn't read unless you open a terminal window.  Try adding it to
~/.MacOSX/environment.plist.  (I use
http://www.apple.com/downloads/macosx/system_disk_utilities/environmentvariablepreferencepane.html
to manage this file.)

- -- 
brandon s. allbery [linux,solaris,freebsd,perl]  allb...@kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university  KF8NH
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0nvJ8ACgkQIn7hlCsL25WaaACbB9d1mOe/nFsjR4cWQhCYc2V0
iaoAnjAEhwoOOQGfUO3LAOfCyTcaGdLy
=Inl5
-END PGP SIGNATURE-
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Problems with gnuplot from marcports

2011-01-07 Thread Jason Swails
Ha, I misread that.  I thought tedit was a program you aliased with open -e
(not sure how I thought that worked).  Your way makes much more sense.  I
like my vi, so I don't use open for text files in any case.  I only just
learned about -e and -t when looking at the man page again.

Happy times,
Jason

On Fri, Jan 7, 2011 at 6:14 PM, Andrea D'Amore wrote:

> On Fri, Jan 7, 2011 at 3:09 PM, Jason Swails 
> wrote:
> > Why not set tedit to your default text editor and use "open -t" instead?
> > (also described in said man page)
>
> Because I find it easier to type "tedit" than "open -e" with the space
> and the dash. My default editor is "edit" already.
>
> --
> Andrea
>



-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: bind9 / rndc questions

2011-01-07 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 1/5/11 17:22 , William H. Magill wrote:
> Now I just have to figure out what rndc "does" and how to use it rationally.
> It seems to be one of those tools which exists and "everybody knows how to 
> use it." 

I think that might be your fault, in some sense; using signals to control
named was BIND4, BIND8 wanted you to use ndc instead (but didn't force you
to), and you would be ready for rndc if you had :)

- -- 
brandon s. allbery [linux,solaris,freebsd,perl]  allb...@kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university  KF8NH
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0nq/gACgkQIn7hlCsL25WSAQCgtpWuN6sAYkj4++xBdiGNNDqz
FDkAniq0ydMxdZRL6gSkiNzWmL/wCump
=gwON
-END PGP SIGNATURE-
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Problems with gnuplot from marcports

2011-01-07 Thread Andrea D'Amore
On Fri, Jan 7, 2011 at 3:09 PM, Jason Swails  wrote:
> Why not set tedit to your default text editor and use "open -t" instead?
> (also described in said man page)

Because I find it easier to type "tedit" than "open -e" with the space
and the dash. My default editor is "edit" already.

-- 
Andrea
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: FATAL ERROR: Could not find mysqld & Missing Port 3306

2011-01-07 Thread David Gentry
Your guess makes sense to me: the FATAL ERROR came from script that I did not 
successfully uninstall.  I ran "which mysql_install_db5" and the response was 
"/opt/local/bin/mysql_install_db5."  The file and a lot of other mysql files 
were in that directory and they were alias files.  I sent all of them to trash.

Then I returned to the web page you referred me to: 
http://trac.macports.org/wiki/howto/MAMP#mysql.

I ran the following commands as instructed to "set up the main database."  I 
separated the commands by semicolons.

sudo -u mysql mysql_install_db5 
sudo chown -R mysql:mysql /opt/local/var/db/mysql5/ 
sudo chown -R mysql:mysql /opt/local/var/run/mysql5/ 
sudo chown -R mysql:mysql /opt/local/var/log/mysql5/

The response was: "sudo: mysql_install_db5: command not found."

Then I ran the same four commands separated by "&".  I got the same result.

Then I ran the first command alone.  I got the same result.

Then I ran the following three commands as advised, "If that doesn't work try 
this":
sudo mysql_install_db5 
sudo chown -R mysql:mysql /opt/local/var/db/mysql5/ 
sudo chown -R mysql:mysql /opt/local/var/run/mysql5/
The result was the same: "sudo: mysql_install_db5: command not found."
Then I searched for "mysql_install_db5."  I found two Portfiles at the 
following locations:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5-server-devel/Portfile
/opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5-server/Portfile
Then I ran "which mysql_install_db5" and the result was to return me to the 
command prompt.
Background: A couple of days ago, when I tried to uninstall all disk image 
copies of MySQL, I also uninstalled MacPorts' "mysql5" and "mysql5-server."  
Then I installed the ports.  I got no error messages.  Then I ran "port 
selfupdate" and I did not get any error messages.
What does this information tell you?

On Jan 7, 2011, at 12:18 AM, Ryan Schmidt wrote:

On Jan 6, 2011, at 13:49, David Gentry wrote:

> Following your advice, I carefully tried to uninstall all previous disk image 
> versions of MySQL that I had downloaded from the MySQL web site.  Also, I 
> uninstalled mysql and mysql-server using sudo port uninstall.
> 
> I carefully followed the instructions on the web page you referred me to.  I 
> had no trouble until I tried to install the mysql main database.  Using both 
> commands given, I received the following reply:
> 
> "FATAL ERROR: Could not find mysqld
> 
> The following directories were searched:
> 
>/usr/local/mysql-5.5.6-rc-osx10.6-x86_64/libexec
>/usr/local/mysql-5.5.6-rc-osx10.6-x86_64/sbin
>/usr/local/mysql-5.5.6-rc-osx10.6-x86_64/bin
> 
> If you compiled from source, you need to run 'make install' to
> copy the software into the correct location ready for operation.
> 
> If you are using a binary release, you must either be at the top
> level of the extracted archive, or pass the --basedir option
> pointing to that location."

Whatever program or script generated that error message was not provided by 
MacPorts; MacPorts would not be looking for anything in 
/usr/local/mysql-5.5.6-rc-osx10.6-x86_64. I'm guessing it was provided by the 
software in that directory, which I'm guessing was not completely uninstalled.

What command did you run to get that message? something with 
mysql_install_db(5)? (It appears to be an error message that 
mysql_install_db(5) would produce.) If so, where is the mysql_install_db(5) it 
is finding -- what does "which mysql_install_db" (or "which mysql_install_db5") 
say? What is in your path -- what does "echo $PATH" say?


> I searched for "mysqld" on my Mac, and I found it installed yesterday (when I 
> was working from your referred instructions) in the following two locations:
> 
> /opt/local/libexec/mysqld
> 
> /opt/local/var/macports/software/mysql5/mysql5.1.51_0/opt/local/libexec/mysqld

Yes, those are where MacPorts would install it, so that's normal.



David J. Gentry
President
Good Things -- Small Packages, LLC
205-637-8000
dgen...@localbusinesswebsites.com
www.localbusinesswebsites.com






___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: FORTRAN for Snow Leopard?

2011-01-07 Thread Marcelo Chiapparini
Thank you so much!

2011/1/7 Jason Swails 

> Hello,
>
> I use Fortran extensively on my Mac for my work (scientific computing --
> all applications are written in Fortran).  I have tried both of the methods
> that you have below, but I've had problems with all of them.  The problem
> with installing just gfortran through binaries is that they're typically
> incompatible with the Xcode GCC compiler (they're different versions of
> GCC), so it's far more difficult to link C- and Fortran- object files.  If
> you do find one that's compatible with the Xcode GCC, then that means you're
> using GCC 4.2, which is quite old. gfortran from that era is not yet stable
> and reliable, especially for legacy F77.
>
> IMO, the best approach is actually provided by MacPorts.  Just install an
> updated GCC with the +gfortran variant.
>
> sudo port -v install gcc45 +gfortran (this may take a little while)
>
> Then you can install gcc_select to help manage different versions of the
> GCC compiler (i.e. the xcode version and the MacPorts version, or multiple
> MacPorts versions if you install gcc44, gcc43, gcc46, etc.)
>
> sudo port -v install gcc_select (this should be fast)
>
> To use gcc_select, do the following
>
> gcc_select -l (lists all of the available versions)
> sudo gcc_select mp-gcc45 (selects the GCC 4.5 installed with MacPorts)
>
> Hope this helps,
> Jason
>
> On Fri, Jan 7, 2011 at 8:49 AM, Marcelo Chiapparini <
> marcelo.chiappar...@gmail.com> wrote:
>
>> Hi!
>>
>> I need to run FORTRAN in my iMac with OSX 10.6 installed. I've done some
>> research, but the results are not conclusive:
>>
>> http://www.webmo.net/support/fortran_osx.html
>> http://hpc.sourceforge.net/
>> http://gcc.gnu.org/wiki/GFortranBinaries
>> http://r.research.att.com/tools/
>>
>> I am not sure which method is the most convenient: to installing the
>> FORTRAN binaries for Leopard or to installing the gfortran extension for
>> Xcode... So, I would like very much to know about experiences from people
>> already running FORTRAN in a Mac (if any!). Thanks a lot in advance for the
>> help!
>>
>> Regards
>>
>> Marcelo
>>
>>
>>
>> ___
>> macports-users mailing list
>> macports-users@lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>>
>>
>
>
> --
> Jason M. Swails
> Quantum Theory Project,
> University of Florida
> Ph.D. Graduate Student
> 352-392-4032
>



-- 
Marcelo Chiapparini
http://sites.google.com/site/marcelochiapparini
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: browser under mac x11

2011-01-07 Thread Dominik Reichardt

Am 07.01.2011 um 17:58 schrieb m p:

> Hello,
> is there a browser that would run under x11 on Mac OS X Snow Leopard.
> Thanks for any help,

firefox-x11

Dom

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


browser under mac x11

2011-01-07 Thread m p
Hello,
is there a browser that would run under x11 on Mac OS X Snow Leopard.
Thanks for any help,
Mark
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: FORTRAN for Snow Leopard?

2011-01-07 Thread Lenore Horner

On Jan 7, 2011, at 9:35 AM, Jason Swails wrote:

> 
> 
> On Fri, Jan 7, 2011 at 9:13 AM, Ryan Schmidt  wrote:
> On Jan 7, 2011, at 08:06, Jason Swails wrote:
> 
> > Just install an updated GCC with the +gfortran variant.
> >
> > sudo port -v install gcc45 +gfortran (this may take a little while)
> 
> You can see with "port variants gcc45" that it does not have a +gfortran 
> variant; fortran support in gcc45 is always on. 
> 
> Only the latest development version gcc port (currently gcc46) has a 
> +gfortran (and a +java) variant. The maintainer of the gcc ports explained to 
> me that gcc's java support (and perhaps its fortran support) frequently broke 
> during the development versions, and he did not want to hold up the release 
> of a new version of the port for that reason alone. By the time a version of 
> gcc became stable, its java and fortran support would be stable as well, so 
> the maintainer permanently enables it at that time.
> 
> A quick perusal of the Portfiles verifies your statement, thanks for 
> clarifying.  However, I've installed gcc43, 44, 45, and 46 all with the 
> +gfortran variant (of which only gcc46 needs it) and it's always worked as 
> expected.  Perhaps port quietly ignores any specified, non-existent variants?
Yes.  Which is sometimes a hazard for those of us whose fingers move faster 
than our brains.  I've often wished port would complain when I misspelled a 
variant.
Lenore___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: FORTRAN for Snow Leopard?

2011-01-07 Thread Jason Swails
On Fri, Jan 7, 2011 at 9:13 AM, Ryan Schmidt wrote:

> On Jan 7, 2011, at 08:06, Jason Swails wrote:
>
> > Just install an updated GCC with the +gfortran variant.
> >
> > sudo port -v install gcc45 +gfortran (this may take a little while)
>
> You can see with "port variants gcc45" that it does not have a +gfortran
> variant; fortran support in gcc45 is always on.
>

> Only the latest development version gcc port (currently gcc46) has a
> +gfortran (and a +java) variant. The maintainer of the gcc ports explained
> to me that gcc's java support (and perhaps its fortran support) frequently
> broke during the development versions, and he did not want to hold up the
> release of a new version of the port for that reason alone. By the time a
> version of gcc became stable, its java and fortran support would be stable
> as well, so the maintainer permanently enables it at that time.
>

A quick perusal of the Portfiles verifies your statement, thanks for
clarifying.  However, I've installed gcc43, 44, 45, and 46 all with the
+gfortran variant (of which only gcc46 needs it) and it's always worked as
expected.  Perhaps port quietly ignores any specified, non-existent
variants?


>
> If your gcc45 port does in fact still have +gfortran and +java variants,
> then your port definitions are out of date; use "sudo port selfupdate" to
> update them, then "port outdated" to see which ports are outdated and in
> need of updating.
>

I keep my definitions updated (religiously), and have actually rid myself of
the need to use "sudo" by changing permissions of /Applications/MacPorts and
/opt, (I like to reserve the necessity of using root privileges for mucking
about in /usr, /bin, /include, etc.; not /usr/local or /opt or any other
place I choose to install compiled software)

All the best,
Jason

-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: FORTRAN for Snow Leopard?

2011-01-07 Thread Ryan Schmidt
On Jan 7, 2011, at 08:06, Jason Swails wrote:

> Just install an updated GCC with the +gfortran variant.
> 
> sudo port -v install gcc45 +gfortran (this may take a little while)

You can see with "port variants gcc45" that it does not have a +gfortran 
variant; fortran support in gcc45 is always on.

Only the latest development version gcc port (currently gcc46) has a +gfortran 
(and a +java) variant. The maintainer of the gcc ports explained to me that 
gcc's java support (and perhaps its fortran support) frequently broke during 
the development versions, and he did not want to hold up the release of a new 
version of the port for that reason alone. By the time a version of gcc became 
stable, its java and fortran support would be stable as well, so the maintainer 
permanently enables it at that time.

If your gcc45 port does in fact still have +gfortran and +java variants, then 
your port definitions are out of date; use "sudo port selfupdate" to update 
them, then "port outdated" to see which ports are outdated and in need of 
updating.



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Problems with gnuplot from marcports

2011-01-07 Thread Jason Swails
On Fri, Jan 7, 2011 at 3:13 AM, Andrea D'Amore wrote:

> On Fri, Jan 7, 2011 at 3:58 AM, Ryan Schmidt 
> wrote:
>
> > "open -e " is the same as dragging the file  onto the program
> TextEdit
>
> I have a "tedit" alias for "open -e" in order to do quick GUI text
> editing and to differentiate it from Bare Bones Software's "edit".
>

Why not set tedit to your default text editor and use "open -t" instead?
(also described in said man page)


>
> --
> Andrea
>



-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: FORTRAN for Snow Leopard?

2011-01-07 Thread Jason Swails
Hello,

I use Fortran extensively on my Mac for my work (scientific computing -- all
applications are written in Fortran).  I have tried both of the methods that
you have below, but I've had problems with all of them.  The problem with
installing just gfortran through binaries is that they're typically
incompatible with the Xcode GCC compiler (they're different versions of
GCC), so it's far more difficult to link C- and Fortran- object files.  If
you do find one that's compatible with the Xcode GCC, then that means you're
using GCC 4.2, which is quite old. gfortran from that era is not yet stable
and reliable, especially for legacy F77.

IMO, the best approach is actually provided by MacPorts.  Just install an
updated GCC with the +gfortran variant.

sudo port -v install gcc45 +gfortran (this may take a little while)

Then you can install gcc_select to help manage different versions of the GCC
compiler (i.e. the xcode version and the MacPorts version, or multiple
MacPorts versions if you install gcc44, gcc43, gcc46, etc.)

sudo port -v install gcc_select (this should be fast)

To use gcc_select, do the following

gcc_select -l (lists all of the available versions)
sudo gcc_select mp-gcc45 (selects the GCC 4.5 installed with MacPorts)

Hope this helps,
Jason

On Fri, Jan 7, 2011 at 8:49 AM, Marcelo Chiapparini <
marcelo.chiappar...@gmail.com> wrote:

> Hi!
>
> I need to run FORTRAN in my iMac with OSX 10.6 installed. I've done some
> research, but the results are not conclusive:
>
> http://www.webmo.net/support/fortran_osx.html
> http://hpc.sourceforge.net/
> http://gcc.gnu.org/wiki/GFortranBinaries
> http://r.research.att.com/tools/
>
> I am not sure which method is the most convenient: to installing the
> FORTRAN binaries for Leopard or to installing the gfortran extension for
> Xcode... So, I would like very much to know about experiences from people
> already running FORTRAN in a Mac (if any!). Thanks a lot in advance for the
> help!
>
> Regards
>
> Marcelo
>
>
>
> ___
> macports-users mailing list
> macports-users@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>
>


-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


FORTRAN for Snow Leopard?

2011-01-07 Thread Marcelo Chiapparini
Hi!

I need to run FORTRAN in my iMac with OSX 10.6 installed. I've done some
research, but the results are not conclusive:

http://www.webmo.net/support/fortran_osx.html
http://hpc.sourceforge.net/
http://gcc.gnu.org/wiki/GFortranBinaries
http://r.research.att.com/tools/

I am not sure which method is the most convenient: to installing the FORTRAN
binaries for Leopard or to installing the gfortran extension for Xcode...
So, I would like very much to know about experiences from people already
running FORTRAN in a Mac (if any!). Thanks a lot in advance for the help!

Regards

Marcelo
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Problems with gnuplot from marcports

2011-01-07 Thread Marcelo Chiapparini
Hi! I forgot that "man" is our friend, sorry for that... and thanks a lot
for all the information regarding the open command. This is an amazing list!

2011/1/7 Andrea D'Amore 

> On Fri, Jan 7, 2011 at 3:58 AM, Ryan Schmidt 
> wrote:
>
> > "open -e " is the same as dragging the file  onto the program
> TextEdit
>
> I have a "tedit" alias for "open -e" in order to do quick GUI text
> editing and to differentiate it from Bare Bones Software's "edit".
>
> --
> Andrea
> ___
> macports-users mailing list
> macports-users@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>



-- 
Marcelo Chiapparini
http://sites.google.com/site/marcelochiapparini
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: ImageMagick & ghostscript @9.00_4 convert issues

2011-01-07 Thread Bradley Giesbrecht


On Jan 7, 2011, at 1:09 AM, Ryan Schmidt wrote:


On Jan 7, 2011, at 02:47, Bradley Giesbrecht wrote:

If you want to test it just create a single page all white test.pdf  
file will probably do it.


$ convert test.pdf test.png


I was not able to reproduce the issue. On Snow Leopard, I opened  
TextEdit to create a new empty document, chose Print from the File  
menu, and told it to save as a PDF. I then used ImageMagick to  
convert it to a PNG as above. Both files, when opened in Preview,  
are white.


I just did something similar and I got delegate errors. I probably  
need to recompile ImageMagic against the newer ghostscript. I have to  
move to a test machine, I have file uploads 24/7.


We have received around 20 complaints from customers and using  
customer supplied files and changing ghostscript to previous version  
fixes this on my 10.5 ppc machine.


--
Brad
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: ImageMagick & ghostscript @9.00_4 convert issues

2011-01-07 Thread Ryan Schmidt
On Jan 7, 2011, at 02:47, Bradley Giesbrecht wrote:

> If you want to test it just create a single page all white test.pdf file will 
> probably do it.
> 
> $ convert test.pdf test.png

I was not able to reproduce the issue. On Snow Leopard, I opened TextEdit to 
create a new empty document, chose Print from the File menu, and told it to 
save as a PDF. I then used ImageMagick to convert it to a PNG as above. Both 
files, when opened in Preview, are white.

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: ImageMagick & ghostscript @9.00_4 convert issues

2011-01-07 Thread Bradley Giesbrecht


On Jan 7, 2011, at 12:21 AM, Andrea D'Amore wrote:

On Fri, Jan 7, 2011 at 6:25 AM, Bradley Giesbrecht  
 wrote:
The combination of ImageMagick and ghostscript @9.00_4 is producing  
pink

instead of white backgrounds.
Reverting to ghostscript @8.71_5 and this problem goes away.
Has anyone else experienced problems with ghostscript @9.00_4?


Can you provide a proof of concept for such a conversion? (convert
command line and a test file)


I will start a trac ticket tomorrow. I don't own the upload files so I  
will have to create one to share and test with.
If you want to test it just create a single page all white test.pdf  
file will probably do it.


$ convert test.pdf test.png


Has the functionality of ghostscript changed with @9.00_4?


I think you should better check ghostscript's changelogs.


I will look into this as well. For now reverting to the previous  
version of ghostscript causes my 1+ year upload processor to work as  
expected.


--
Brad
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: ImageMagick & ghostscript @9.00_4 convert issues

2011-01-07 Thread Andrea D'Amore
On Fri, Jan 7, 2011 at 6:25 AM, Bradley Giesbrecht  wrote:
> The combination of ImageMagick and ghostscript @9.00_4 is producing pink
> instead of white backgrounds.
> Reverting to ghostscript @8.71_5 and this problem goes away.
> Has anyone else experienced problems with ghostscript @9.00_4?

Can you provide a proof of concept for such a conversion? (convert
command line and a test file)

> Has the functionality of ghostscript changed with @9.00_4?

I think you should better check ghostscript's changelogs.

-- 
Andrea
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Problems with gnuplot from marcports

2011-01-07 Thread Andrea D'Amore
On Fri, Jan 7, 2011 at 3:58 AM, Ryan Schmidt  wrote:

> "open -e " is the same as dragging the file  onto the program 
> TextEdit

I have a "tedit" alias for "open -e" in order to do quick GUI text
editing and to differentiate it from Bare Bones Software's "edit".

-- 
Andrea
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users