comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDLWAVE (Mac) launching IDL as PPC rather than Intel
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDLWAVE (Mac) launching IDL as PPC rather than Intel [message #51802] Fri, 08 December 2006 07:16 Go to next message
Anthony[1] is currently offline  Anthony[1]
Messages: 20
Registered: December 2006
Junior Member
I have IDL 6.3 running on an Intel Mac. From the command line, it
launches as a native Intel application. But from IDLWAVE it launches
as a Power PC (ppc) application, which makes it much slower. (emacs
itself is running as an Intel application.)

Any ideas?

Anthony
Re: IDLWAVE (Mac) launching IDL as PPC rather than Intel [message #51932 is a reply to message #51802] Fri, 08 December 2006 16:27 Go to previous messageGo to next message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Fri, 08 Dec 2006 16:07:23 -0800, Anthony wrote:

> JD Smith wrote:
>> That's a first (no Intel Mac here). Do you happen to have more than one
>> IDL 6.3 version installed? My guess is that from the terminal you are
>> running one version, and from IDLWAVE another, likely do to differences
>> in the environment (e.g. search path) between them.
>
> Okay, I have 6.3 and 6.1 installed, and I've found the problem and a
> (messy) solution.
>
> IDLWAVE appears to call IDL from the idl_6.1 folder, rather than from
> $IDL_DIR or ...rsi/idl, both of which point to idl_6.3. This means that
> idl_6.1/bin/idl is executed, which assumes that if OS="darwin" then
> ARCH=".ppc". It then calls $IDL_DIR/bin/bin.$OS$ARCH, i.e., 6.3 PPC
> version.

IDLWAVE doesn't specifically call any version of IDL (unless you've
configured it that way -- look for `idlwave-shell-explicit-filename'
in your .emacs). It calls the version that is first on the path --
i.e. the version that the shell would find if you typed "idl".

It sounds very much to me like a) you have idl_6.1 first on your
search path (possibly just inside of Emacs), and b) you have IDL_DIR
pointed to idl_6.3. This sort of works, but only because you get
lucky and the 6.1 start script (almost) works with 6.3. Are you
certain you don't get this same behavior right in the Terminal typing
"idl"? If so, check for explicit symlinks to idl_6.1. It's also
possible you have an outdated IDL_DIR explicitly set for Emacs
(e.g. via environment.plist), but not the terminal. In Emacs try M-x
getenv IDL_DIR, and you might check PATH while there as well.

If you load Emacs from the shell, it should launch the exact same IDL
version that you get in the shell typing "idl". Try that to check.
If your Emacs is launched from somewhere else (e.g. it's Carbon Emacs
loaded from the Dock, etc.), then you need to ensure the pertinent
environment is the same between terminal and global environment.
Search this group for environment.plist, which is the way to do that.
If all else fails, set explicit-filename to point right to
rsi/idl/bin/idl.

A recommendation for the future: always redirect everything through a
symlink /path/to/rsi/idl, which points to the "current version"
directory, e.g. idl_6.3. Never explicitly mention any other path in
any way, except perhaps by linking, e.g. idl_6.1 to
/path/to/rsi/idl_6.1/bin/idl (so you can run old versions as a test).
If you do this, there will never be occasion for IDL versions to get
confused with each other.

JD
Re: IDLWAVE (Mac) launching IDL as PPC rather than Intel [message #51933 is a reply to message #51802] Fri, 08 December 2006 16:28 Go to previous message
Anthony[1] is currently offline  Anthony[1]
Messages: 20
Registered: December 2006
Junior Member
Anthony wrote:

> Any idea why IDLWAVE should call idl_6.1 rather than the default?

Got it - /usr/local/bin/idl--- were pointing to idl_6.1.

Thanks for the help. All solved!

Anthony
Re: IDLWAVE (Mac) launching IDL as PPC rather than Intel [message #51934 is a reply to message #51802] Fri, 08 December 2006 16:07 Go to previous message
Anthony[1] is currently offline  Anthony[1]
Messages: 20
Registered: December 2006
Junior Member
JD Smith wrote:
> That's a first (no Intel Mac here). Do you happen to have more than
> one IDL 6.3 version installed? My guess is that from the terminal you
> are running one version, and from IDLWAVE another, likely do to
> differences in the environment (e.g. search path) between them.

Okay, I have 6.3 and 6.1 installed, and I've found the problem and a
(messy) solution.

IDLWAVE appears to call IDL from the idl_6.1 folder, rather than from
$IDL_DIR or ...rsi/idl, both of which point to idl_6.3. This means that
idl_6.1/bin/idl is executed, which assumes that if OS="darwin" then
ARCH=".ppc". It then calls $IDL_DIR/bin/bin.$OS$ARCH, i.e., 6.3 PPC
version.

My messy solution is to move the 6.1 folder and create a link idl_6.1
-> ... idl_6.3. So when IDLWAVE attempts to call idl_6.1 it actually
calls idl_6.3.

Any idea why IDLWAVE should call idl_6.1 rather than the default?

Anthony
Re: IDLWAVE (Mac) launching IDL as PPC rather than Intel [message #51936 is a reply to message #51802] Fri, 08 December 2006 14:25 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Fri, 08 Dec 2006 07:16:41 -0800, Anthony wrote:

> I have IDL 6.3 running on an Intel Mac. From the command line, it
> launches as a native Intel application. But from IDLWAVE it launches as a
> Power PC (ppc) application, which makes it much slower. (emacs itself is
> running as an Intel application.)

That's a first (no Intel Mac here). Do you happen to have more than
one IDL 6.3 version installed? My guess is that from the terminal you
are running one version, and from IDLWAVE another, likely do to
differences in the environment (e.g. search path) between them.

Before 6.3b, IDL wasn't Intel native. Try running Emacs from the
command line. If you do have more than one IDL version, try
print,!VERSION in both to see if they are the same (modulo arch). If
that's not it, we'll have to dig deeper.

JD
Re: IDLWAVE (Mac) launching IDL as PPC rather than Intel [message #51940 is a reply to message #51802] Fri, 08 December 2006 12:52 Go to previous message
henrygroe is currently offline  henrygroe
Messages: 30
Registered: August 2003
Member
Anthony wrote:
> I have IDL 6.3 running on an Intel Mac. From the command line, it
> launches as a native Intel application. But from IDLWAVE it launches
> as a Power PC (ppc) application, which makes it much slower. (emacs
> itself is running as an Intel application.)

Kludgey idea:

Remove:
/Applications/rsi/idl/bin/bin.darwin.ppc
and create a soft link from
/Applications/rsi/idl/bin/bin.darwin.ppc
to
/Applications/rsi/idl/bin/bin.darwin.i386

There may be reasons this is a bad idea.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Data elimination from array
Next Topic: How to get a very large 2D projected surface image

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:40:49 PDT 2025

Total time taken to generate the page: 0.00502 seconds