Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: Symbolic Links

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Symbolic Links

    Hi everyone,

    I am brand new to Linux and am struggling with symbolic links. I need to set up a FORTRAN compiler (my advisor is requiring me to do this in Linux), and I am using g95. I've un-tared the files into an installation directory, and now want to create a link to the compiler. Here is what I am trying to do:

    ln -s /home/peter/g95-install/bin/i686-pc-linux-gnu-g95 /home/peter/g95-install/bin/g95
    ln: creating symbolic link `/home/peter/g95-install/bin/g95': No such file or directory

    When I look in the directory, there is no link. My end goal is to be able to use commands like:

    g95 -c helloworld.f90

    to compile and run FORTRAN programs. Anyone have any help? Thanks for your time.

    EDIT: I am using openSuse 11.3

  2. #2
    Just Joined!
    Join Date
    Aug 2010
    You can do an alias:

    Add in .bashrc
    alias g95='/home/peter/g95-install/bin/i686-pc-linux-gnu-g95'

    Save teh change.

    After that use the command
    source .bashrc

    And you should be done

    EDIT: I don't work on opensuse, but i suppose you have a .bashrc, otherwise check for a .profile

Posting Permissions

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