Installing spim

This is a discussion on Installing spim within the Linux Programming forums, part of the Platform Specific Boards category; Hello Everyone! Im installing spim on ubuntu which i got from SPIM MIPS Simulator . Ive followed the steps but ...

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    20

    Installing spim

    Hello Everyone!

    Im installing spim on ubuntu which i got from SPIM MIPS Simulator.
    Ive followed the steps but suddenly i got these following errors.

    Code:
    jars@jars-desktop:~/Desktop/spim/spim-8.0/xspim$ xmkmf
    mv -f Makefile Makefile.bak
    imake -DUseInstalled -I/usr/lib/X11/config
    <stdin>:1:19: error: stdio.h: No such file or directory
    <stdin>:2:19: error: ctype.h: No such file or directory
    <stdin>: In function ‘main’:
    <stdin>:18: error: ‘NULL’ undeclared (first use in this function)
    <stdin>:18: error: (Each undeclared identifier is reported only once
    <stdin>:18: error: for each function it appears in.)
    <stdin>:45: warning: incompatible implicit declaration of built-in function ‘sscanf’
    <stdin>:49: warning: incompatible implicit declaration of built-in function ‘printf’
    Aborted
    im stucked right there and i dont know what to do. can anyone help me?

    Thanks in advance!
    Have a nice day!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,418
    Did you install a C compiler?

    Did you install a standard C library?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    20
    thanks man! ive fixed this error

    ..gosh there's many requirement to install spim

  4. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    20
    but now i have this error
    Code:
    /usr/bin/ld: cannot find -lXaw
    collect2: ld returned 1 exit status
    make: *** [xspim] Error 1
    ive already installed a C compiler, flex and bison...

    is there anything i need to install? (if there is one, then how do i install it?)

    any comment is highly appreciated
    Last edited by eyescythe; 07-23-2010 at 11:47 AM.

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,418
    Xaw - Wikipedia, the free encyclopedia

    Either
    - you need to install it,
    - you need to get the name correct (do you have libXaw.a)?
    - you need to specify the directory (using -L) where libXaw.a can be found.

    Remember, case is important. Does it really have a capital letter?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    Registered User
    Join Date
    Oct 2009
    Posts
    20
    thanks a lot man!

    ive completely installed spim!
    now time for some programming action!

    have a nice day!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem installing Aug 2006 DirectX SDK
    By cboard_member in forum Game Programming
    Replies: 4
    Last Post: 08-27-2006, 12:25 PM
  2. Trouble installing Qt3 from book Cd
    By mrcheesypants in forum Tech Board
    Replies: 2
    Last Post: 10-12-2005, 06:57 PM
  3. RedHat - installing gdb
    By geek@02 in forum Tech Board
    Replies: 2
    Last Post: 07-29-2005, 02:54 PM
  4. Installing OS
    By Liger86 in forum Tech Board
    Replies: 6
    Last Post: 11-15-2003, 09:34 AM
  5. Installing a HD
    By MethodMan in forum Tech Board
    Replies: 6
    Last Post: 01-16-2003, 05:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21