![]() The resulting file listing includes hidden files. (d) Set your path to point to the new installation: In your terminal window, cd to your home directory (cd #). You should now have ruby and tk installed. configure -prefix=/opt/local -with-arch=x86_64,i386 -enable-pthread -enable-shared Then issue the following command (edit it for a different destination): Decide where you want to install the new version. Open a Terminal window and cd to the ruby source directory you just unpacked. (c) Get Ruby 1.9.3 or later from Get the source code version (a tar.gz file) and unpack it by double clicking. Get Tck/Tk from Get the free community edition and install it. You probably don't need the latest version, but might. If you do have it, it will be in Applications, most likely. (a) Get XCode from the apple store if you don't have it. The following seems to work under both Lion and Snow Leopard. You probably want to install to a new location, not over the original ruby, so you also need to set your PATH variable so that the new version will be executed. You want to download the latest ruby along with Tck/tk and rebuild ruby to take advantage of tk. You already have Ruby, but an older version. On a Macintosh it is a bit more complex, but similar to Linux. If you installed it in a non-standard place you will need to make your PATH point there, but I'll assume you used the default. You may also need sudo for the first make command (sudo make instead) but you certainly do for "make install" as it will move things into your final directory, which you probably don't own. It asks for an administrator's password before it will continue. Then (you need an admin password for at least some of the rest) give the command: configure -enable-pthread -enable-shared Then issue the following command (edit it for a different destination - see the Macintosh version of these instructions for how to do this.): ![]() Get Ruby 1.9.3 or later from Get the source code version (a tar.gz file) and unpack it by double clicking. Eventually click Finish to complete the install. Note that /usr is an important directory, so use caution in writing into it. I was successful in using /usr, /usr/demo, and /usr for the three directories. On three screens you need to enter directories. (b) Get Tck/Tk from Get the free community edition and install it. Use your package manager to get the GNU toolkit if you don't have it already. (a) You need the developer tools installed. If you need to install anything do this - in this order: If you get a respons of "true" you are good to go, so leave irb with exit and go to Step 3. This is the interactive Ruby shell that you should have if you have Ruby. To be sure, open a command window and type If you have ruby it will tell you the version. It would be a good indication that you have some version. You may have Ruby 1.9 and Tcl/tk already installed. There is more complexity here than for windows. There are many variations of Linux so this may not work for other "similar" systems. If you get a respons of "true" you are good to go. You are done with step 2 but want to test it. Install it to the default location and be sure to check the three options you are given (tk, path, and. And execute the downloaded exe file (an installer). You probably don't have either installed, but can get them both together, from the latest version (1.9.3 or later) packaged in an installer (not the zip version). On a Windows system this is a bit easier than the others. Get Ruby and Tck/Tk installed: (The latter is a graphics system, originally built for Perl). I've had this work under Helios, Europa, and Juno versions. ![]() The latest version is not essential, so you may have it already. Get the classic edition or the Java Programmer edition, but NOT the EE edition, as it is too complex. All but step 2 are the same for all systems.įor both systems: Get Eclipse from and install it. ![]() Here we will show how to set up a Windows, Linux (Ubuntu), or Macintosh system using the simulator under Eclipse. You will also probably want an IDE in which to develop programs. To run the Karel R Tuesday Ruby simulator you will need Ruby and Tcl/Tk installed on your machine. Karel R Tuesday Simulator Karel R Tuesday Simulator
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |