a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by kleinbl00
kleinbl00  ·  4330 days ago  ·  link  ·    ·  parent  ·  post: Calling all Unix/OS X Gurus!

Once I followed ecib's lead and got the proper command line tool, it found GCC fine. Then I followed the directions and nothing happened. Then I fed in your little string (once I determined that the $ isn't for me to type - as I said, not good at computer) and magic compiling and things happened.

After much putzing around and determining that double-clicking the SaVi executable, I get:

SaVi: For 3D visualization, run from within Geomview. SaVi: defaulting to J2 orbital model. SaVi: $SAVI was not set to location of savi directory containing launch script. SaVi: $TCL_LIBRARY was not set to location of directory containing Tcl. SaVi: $TK_LIBRARY was not set to location of directory containing Tk. SaVi: edit and run the savi wrapper script in savi's directory to set locations. SaVi: tcl_error: invalid command name "app_init" SaVi: tk_init: Error in app_init: invalid command name "app_init" SaVi: could not initialise Tk (main: error in tk_init). SaVi: Error! Exiting.logout

[Process completed]

...and now it looks like I need to run geomview. Which looks to be more of the same.

At this point I begin to ask if this would be easier if I threw Ubuntu on the spare macbook I have gathering dust...?





thundara  ·  4329 days ago  ·  link  ·  

Yeah, sorry, should've mentioned the dollar sign, that is usually used to indicate the start of a command run as a user:

    $ command

versus commands run as root (The most privileged user on the system), indicated with a hash:

    # command

At this point, it looks like your errors are related to your environment not being set up properly. $TCL_LIBRARY should be set to the directory containing the Tcl runtime libraries with:

    $ export TCL_LIBRARY=/path/to/directory

You might want to check /lib/tcl, /usr/lib/tcl, and /usr/local/lib/tcl* for .dynlib files. The same goes for $TK_LIBRARY.

Unsure where $SAVI should be pointing to, likely the directory of the .app file (Or somewhere inside that). A little investigating found /usr/local/savi as a potential location. /System/Library/Frameworks/tcl.framework is another potential candidate. If it's not there, you might want to take a look at the output of the make command you ran to build and install the program (Re-running it shouldn't cause any errors, it'll just overwrite the old executable).

Alternatively, yeah, you could install Ubuntu on an old computer or run it within a virtual machine. Whenever you feel frustrated enough to give up setting it up on OS X!

Hop on IRC if you have more questions, debugging programs like this tends to be easier in real time.

kleinbl00  ·  4329 days ago  ·  link  ·  

I'm smart enough to know what the dollar sign means; my problem is I'm too stupid to know what everything else means so I always start by copy-pasting everything I see and working my way backwards.

the Ubuntu issue is another thing. I may mess about with it when I get some time. In the meantime, I've capitulated and devoted my debug time to finding a better solution. Four pages buried on Google, I succeeded.

Thanks sincerely for your help. I shall not abuse it when I don't need it.

thundara  ·  4329 days ago  ·  link  ·  

Well, for future learning's sake: "which" finds the location of the its argument, turning "gcc" (The compiler) into "/usr/bin/gcc", "cd" changes the directory, "tar" extracts the archive, and "make" instructs the system to follow the commands laid out in the Makefile, describing how to build and install the package.

The "&&"s between each command just serve to conditionally execute them only in the case that the previous command succeeded.

ecib  ·  4329 days ago  ·  link  ·  

I got the same thing...compiling with errors. Now it's bugging me and I've been trying to get this damn thing running even though I don't even use the program.

I was going to suggest dual booting Ubuntu as a last resort. Looking at the compiler error it seems to hint at a ton of missing variables? It feels like the files would actually have to be modified in some way and there is a 'read me' file that hints at this in the .tar bundle. I don't even know...I was chasing down tcl/tk version errors as a theory before I gave up for the night :/

kleinbl00  ·  4329 days ago  ·  link  ·  

When I start messing with Ubuntu I'll revisit. As it is I don't want to hack it up too much if I don't have to (and after a half hour of searching, I don't.

Thank you for your efforts. I sincerely appreciate them, and shall avail myself of them when I have no alternatives that are less work for everyone.

ecib  ·  4329 days ago  ·  link  ·  

Np, -the net was really a wasteland on this issue too :