Find the answer to your Linux question:
Results 1 to 2 of 2
hi i am trying to install an assembler called spim. The makefile says: ----------------------------------------------------------------------- # # To make spim, type: # # make spim # # Cannot make xpsim under ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    2

    beginner install problems


    hi
    i am trying to install an assembler called spim. The makefile says:

    -----------------------------------------------------------------------

    #
    # To make spim, type:
    #
    # make spim
    #
    # Cannot make xpsim under windows. Use PCSpim instead.
    #
    # To verify spim works, type:
    #
    # make test
    #

    .SUFFIXES:
    .SUFFIXES: .c .o

    #
    # The following parameters must be set for the target machine:
    #
    #

    # Path for directory that contains the source of the CPU code:
    CPU_DIR = ../CPU
    VPATH = src:$(CPU_DIR)

    # Path of directory that contains SPIM tests:
    TEST_DIR = ../Tests

    # Path of directory that contains documentation:
    DOC_DIR = ../Documentation



    # Full path for the directory that will hold the executable files:
    BIN_DIR = /usr/local/bin

    # Full path for the directory that will hold the exception handler:
    EXCEPTION_DIR = /usr/local/lib

    # Full path for the directory that will hold the man files:
    MAN_DIR = /usr/man/mann

    ------------------------------------------------------------------
    so i create directory called spim and then run

    make
    - this works ok, then i run :

    make install

    and i get:
    ----------------------------------------------------------------------
    #make -f Makefile spim2
    make[1]: Entering directory `/home/richard/spim/spim-7.3/spim'
    gcc -g spim-utils.o run.o mem.o inst.o data.o sym-tbl.o y.tab.o lex.yy.o syscall.o display-utils.o string-stream.o spim.o -lm -o spim -lm
    make[1]: Leaving directory `/home/richard/spim/spim-7.3/spim'
    install -c -s spim /usr/local/bin
    install: cannot create regular file `/usr/local/bin/spim': Permission denied
    make: *** [install] Error 1
    [richard@localhost spim]$ #

    -----------------------------------------------------------------------
    can anyone help me i have spent several hours trying to solve but i am a new linux user)
    thanks
    Richard

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Execute make install command as root user.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •