博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
install s2plot -MacOS
阅读量:6152 次
发布时间:2019-06-21

本文共 4502 字,大约阅读时间需要 15 分钟。

Installing s2plot for Mac OS X running Leopard:-----------------------------------------------------------------------------There are instructions online and in the INSTALL.TXT and ENVIRONMENT.TXT files,as well as online. This is documentation specifically for Mac Laptops running Leopard. Note that the full list of supported architectures is available at http://astronomy.swin.edu.au/s2plot/index.php?title=S2PLOT:Installation1) Install XCODE for compiling.2) s2plot     a) Install     b) Configure     c) Test     d) Implement----------------------------------------------------------------------------------------------------------------------------------------------------------1)  Install XCODE:  This has the compilers, etc. used by the s2plot scripts. a) Using Mac Install Disc 2, in the XCODE folder click on Xcode Tools.mpkg and use thewizard. It will install in the /Developer directory.Alternatively grab  XCODE off of web - takes 2 hours to download and is 1 GB. b) Reboot your computer so that the gcc compiler will be put into the /usr/bin/ directory.----------------------------------------------------------------------------------------------------------------------------------------------------------2) S2PLOT2a) Install S2PLOT:--Download the tar file for the full release from    http://astronomy.swin.edu.au/s2plot/index.php?title=S2PLOT:Download-- Bunzip by clicking s2plot-all-2.4-2008-09-29.tar.bz2 in a Finder window. -- Move the resulting s2plot-2.4. directory to /usr/local/-- Open up the permissions             chmod -R 777 s2plot-2.42b) Configure S2PLOT:-- Check that s2plot-2.4/s2plot.csh has S2X11PATH  which points to  /usr/X11R6-- Set environmental variables in a dot rc file.     - check the kind of shell you are running by typing "ps".  It will be       listed.   The following instructions assume that  bash is running.     - make a .bashrc file with the following:# s2plot settingsexport S2PATH="/usr/local/s2plot-2.4"export S2ARCH="darwin-gnu-i386"export PATH="${PATH}:${S2PATH}:${S2PATH}/${S2ARCH}"export S2TEXPATH="${S2PATH}/textures"export S2PLOT_LATEXBIN="/usr/texbin"export S2PLOT_DVIPNGBIN="/usr/texbin"export DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${S2PATH}/${S2ARCH}"export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${S2PATH}/${S2ARCH}"export C_INCLUDE_PATH="${C_INCLUDE_PATH}:${S2PATH}"export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:${S2PATH}"export PATH="${PATH}:${S2PATH}:${S2PATH}/${S2ARCH}"-- to source these variables type      . .bashrc Note that the S2PLOT_LATEXBIN and S2PLOT_DVIPNGBIN environment variables assume that you have a working installation of LaTeX and the dvipng program,which is available from http://sourceforge.net/projects/dvipng/These packages are *only* required for two S2PLOT functions:	ss2ltt - Create a texture with LATEX commands.If you wish to use Freetype fonts for creating texture-mapped labels viafunction:	ss2ftt - Use a named freetype font to create a texture mapwill also need to set:export S2FREETYPE="yes"2c)  Testing that the installation and configurations have worked: Test that you can run the programs from a terminal (do not use the Apple Finderor other file managers).--   Change to directory for s2plot-2.4       cd $S2PATH -- The test programs haven't been compiled yet.  To do this type       build-functions.csh    which puts them in the darwin-gnu-i386 dir which can be called with    $S2PATH/$S2ARCH -- move to  the directory with the functions        cd  $S2PATH/$S2ARCH-- Select  any name at random and type it's name to run.            At the graphics device prompt it best to select /S2MONO.2d)  Implement S2PLOT functions. -- Make a directory in your home area in which you want to store the functions    (e.g. s2plotfn).  -- Copy the functions over to this directory and compile them.  Example:       Copy s2opend.c from the directory ${S2PATH}/functions to ~/s2plotfn       directory. Compile with           cbuild.csh s2opend       This builds an executable binary called "s2opend" -- To run the executable  you then just type the name.              F1 toggles on info about what you can do.             Shift-ESC or Shift-Q to quit.-- A full list of keypresses and mouse controls is available at 	http://astronomy.swin.edu.au/s2plot/index.php?title=S2PLOT:Controls----------------------------------------------------------------------------------------------------------------------------------------------------------

转载于:https://www.cnblogs.com/shaoguangleo/archive/2011/08/25/2805746.html

你可能感兴趣的文章
实现购物车加减计价功能
查看>>
dup等复制文件描述符函数
查看>>
linux服务器进程信息查看命令
查看>>
bzoj 1798 维护序列seq 线段树
查看>>
SuSE Linux上搭建apache+php+mysql环境
查看>>
Android Studio 出现Activity supporting ACTION_VIEW is not set as BROWSABLE错误
查看>>
iOS 加载动态库报错问题
查看>>
今日工作情况5
查看>>
记录git的初始设置,添加文件,提交文件
查看>>
18 行为型模式-----模板方法模式
查看>>
基于PHP的微信支付教程
查看>>
《Linux内核设计与实现》学习总结 Chap18
查看>>
const与define的对比
查看>>
sql中binary_checksum(*)的用法
查看>>
pta l2-13(红色警报)
查看>>
网页编排规则
查看>>
有图形界面的聊天程序
查看>>
ACM题解系列之一:刘汝佳:《算法竞赛入门经典》(第2版)
查看>>
codeforces 698B fix a tree 时间戳
查看>>
从新浪的分享文本字符串中,分离出@到的好友的方法
查看>>