|
From: Kelvin C. <kel...@uv...> - 2004-01-02 16:55:00
|
Hi Joe;
Glad to hear that things are working. Some Unix and fink-related
notes:
1) To change your shell (back) to tcsh, type:
chsh (username)
and then enter /bin/tcsh at the prompt.
2) To put vpython in your path, you will need to have /sw/bin in your
path, which means adding the (appropriate) line to your .cshrc or
other shell-appropriate startup file. This procedure is
documented in the fink install instructions.
3) X11 and xterm get environmental variables from the shell (ie X is
a windowing system, not a shell).
4) I've amended the posted build instructions to include the
directions for the bash shell.
-k
Joe Heafner (hea...@ct...)
said the following on [20:47, 01 Jan]
about [Visualpython-users] VPython working on Mac OS 10.3.2
> Good evening.
>
> Using Kevin Chu's instructions at
>
>
> <http://www.uvm.edu/~kchu/?Page=VPython/BuildingVPython.html&SM=miscsubmenu.html>
>
>
> I too have built VPython under Mac OS 10.3.2. I first installed the
> latest Fink and FinkCommander (a graphical front end to the Fink
> system) and all went well until I tried to build gtk+. There was a
> failure somewhere near the end that prevented the built packages from
> being installed. I suspect I goofed something up because I set
> FinkCommander to use the unstable tree so I wouldn't have to copy over
> the python23 info and patch files ad Chu describes. This didn't work,
> so I wiped out Fink and FinkCommander and reinstalled Fink. This time,
> I copied over the info and patch files as directed. However, I issued
> "fink selfupdate" rather than "fink selfupdate-cvs" and all worked
> fine.
>
> Apple has made bash the default shell now and this caused me to
> stumble. Environment variables must be set as
>
> export CPPFLAGS="-I/sw/include -I/sw/include/gtkgl" (note the quotes
> needed for multiple arguments)
> export BROWSER=open
>
> I realize the reference to /gtkgl is not needed. I verified these env
> variables had been correctly set with
>
> echo $CPPFLAGS
> echo $BROWSER
>
> I'm curious as to why the LDFLAGS env variable didn't need to be set.
> After a successful build and install using the
> visual-2.1.9-20031005.tar.gz tarball, I fired up X11 and the vpython
> script and got the new IDLE environment and was able to run VPython
> programs. The only issues I see are:
>
> 1) Hitting F1 fails to bring up the web browser with help docs. From
> xterm, I saw that the BROWSER env variable didn't exist so I set it
> manually (X11 apparently uses bash too), and still it didn't work. I
> tried setting this variable in ~/.profile but still no luck, although
> this does set the variable in Apple's Terminal program.
>
> 2) X11 doesn't know about /sw in the PATH, so I have to type
> "/sw/bin/vpython &" to start VPython.
>
> >From where do xterm and X11 get information about environment
> variables under 10.3?
>
> Otherwise, I now have VPython running under Panther.
>
> Cheers,
> Joe Heafner -- Astronomy/Physics Instructor
>
>
-- End of included message --
--
Kelvin Chu
Department of Physics, Cook Building, 82 University Place
University of Vermont, Burlington, VT 05405-0125
802.656.0064, http://www.uvm.edu/~kchu/
|