Brauche Hilfe bei der Installation dieses Programms

kthesun

kthesun

Aktives Mitglied
Thread Starter
Dabei seit
01.06.2008
Beiträge
1.254
Reaktionspunkte
80
Hallo,

Mein Anliegen ist extrem dringend. Ich schreibe am Samstag eine Klausur, inder ich unter anderem XSpim (Assembler) programmieren muss.

Bisher habe ich mich um die Installation des Programms nie geschert, weil ich mich immer über den NoMachine-Cliente auf die Linux-Server der Uni einloggen konnte und dort den XSpim Simulator benutzen konnte. Jetzt funktioniert dieser seit gerade eben aber aus irgendwelchen Gründen nicht mehr. Ich habe auf die Konfiguration usw. keinen Zugriff - da wird irgendwas kaputt sein, was die Admins in den nächsten Tagen wohl auch fixen werden, für mich reicht das aber nicht...

Okay, ich habe den Link: http://pages.cs.wisc.edu/~larus/spim.html

Ich habe versucht diesen *schrott* (sorry) zu installieren, aber ich bekomme es nicht hin.

Das hier ist die Anleitung auf der Webseite:
Unix, Linux, or Mac OS X

(Note: the directions changed slightly for version 7.2, to reflect a new directory structure. Please read carefully.)

Installation is a bit more complex for a Unix or Linux system, as you need to compile the program for your particular computer and operating system.

1.

Download either the file http://www.cs.wisc.edu/~larus/SPIM/spim.tar.Z or http://www.cs.wisc.edu/~larus/SPIM/spim.tar.gz.
2.

Decompress the file, using either the program uncompress for the first file or gzip for the second file:

% uncompress spim.tar.Z

or

% gzip -d spim.tar.gz

3.

Move the file spim.tar to the directory in which you want to build spim and untar it:

% tar xf spim.tar

It will create a directory named spim-7.2 (or the most recent version number).

4.

The simple terminal interface is contained in the spim-7.2/spim directory and the X-windows interfaces is in the spim-7.2/xspim directory. The other directories are described in the README file.

5.

Next, you must set the directories in which spim will be installed by editing the Makefile (the file that contains instructions on building spim). In general, if you are installing spim and want the windowing version (xspim), edit the file xspim/Imakefile. If you don't want xspim or are running on a system without X-windows installed, you use the file spim/Makefile.

Set these pathnames to the appropriate locations for your system:

EXCEPTION_DIR -- The full pathname of the directory in which to install the spim exception handler (exceptions.s).

BIN_DIR -- The full pathname of the directory in which spim and xspim should be installed.

MAN_DIR -- The full pathname of the directory in which the manual pages for spim and xspim should be installed.

In general, the remaining parameters in a Makefile need not be changed.

6.

Then, if you are using Imakefile file, change to the spim-7.2/xspim directory and type:

% xmkmf
% make
If you do not have a copy of xmkmf, you can use the Makefile in the xspim directory, but beware that it may not work on your system because the paths to the X windows libraries could be different.

7.

If you do not have X-windows, change to the spim-7.2/spim directory, edit Makefile, and type:

% make

8.

To run spim or xspim, the exception handler must be installed in the directory specified by the variable EXCEPTION_DIR in the Makefile. If the file exception.s is not installed, spim and xspim fail before they start running. You can either install this file by hand or by typing

% make install

which also installs spim or xspim, and the manual pages in the directories that you set (above).

9.

To test that spim is correctly built, change to the spim-7.2/spim directory and type:

% make test

and examine the output of the test. (Note: the exception handler must be installed before running the test.)
 
Vielleicht sagst du uns auch noch, was dein Problem ist?
 
Okay, was hab ich bisher gemacht:

- Dateien runtergeladen und entpacken lassen.
- Ins Verzeichnis xspim gegangen und die Imakefile mit TextEdit geöffnet. Dort habe ich die drei Variablen angepasst wie es da stand:

EXCEPTION_DIR -- /Users/imac/Downloads/spim/exception

BIN_DIR -- /Users/imac/Downloads/spim/bin

MAN_DIR -- /Users/imac/Downloads/spim/man

Diese 3 Ordner hab ich einfach manuell angelegt.

- Dann hab ich das Terminal geöffnet und bin in den Ordner spim-7.2/xspim/ gegangen und habe %xmkmf eingegeben. Darauf erschien einfach: "No such job". Selbiges wenn ich %make eingebe.

Ja, und hier bleib ich dann hängen.
 
Statt %xmkmf einfach mal nur xmkmf eingeben...

Das häufige Vorkommen von "%" im Text besagt, dass es sich hier um den Unix-Prompt handelt.
 
  • Gefällt mir
Reaktionen: kthesun
./xmkmf
 
  • Gefällt mir
Reaktionen: kthesun
das funktioniert tatsächlich, allerdings kommt dann ein weiterer Fehler, dieser ist also erläutert.

Ich hab viel gegooglet und das Programm jetzt in Package-Form gefunden, so dass man es ganz einfach installieren kann.

Denoch vielen Dank für die Hilfe.
 
Ich habe es ebenfalls geschafft, das Programm laut der Beschreibung zu installieren (wenn man die notwendigen Rechte auf die Verzeichnisse hat).

Das mit dem ./xmkmf dürfte nicht funktionieren, da das Modul nicht in dem Verzeichnis vorhanden ist. Das ist nämlich der Makefile-Preprozessor...
 
Zurück
Oben Unten