- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was trying to install the intel fortran compiler for linux (8.1.024) as a non-root user. I tried to follow the instructions here http://www.intel.com/support/performancetools/fortran/linux/sb/cs-017157.htm . But when I get to step 5
$ cd intel_fc_8.1.022
$ for i in $(file bin/* |grep text |cut -f1 -d:)
> do
> mv $i $i.orig
> sed "s::$(pwd):g" $i.orig >$i
> done
$ cd bin
$ cat ifort # visually inspect paths
$ chmod +x ifort uninstall.sh
$ rm *.orig
the command "for i in $(file bin/* |grep text |cut -f1 -d:)" gives me the following error: "Illegal variable name."
I'm not familiar with the command, so I don't know if it could be a typo or what. Any help would be appreciated. Thanks.
$ cd intel_fc_8.1.022
$ for i in $(file bin/* |grep text |cut -f1 -d:)
> do
> mv $i $i.orig
> sed "s::$(pwd):g" $i.orig >$i
> done
$ cd bin
$ cat ifort # visually inspect paths
$ chmod +x ifort uninstall.sh
$ rm *.orig
the command "for i in $(file bin/* |grep text |cut -f1 -d:)" gives me the following error: "Illegal variable name."
I'm not familiar with the command, so I don't know if it could be a typo or what. Any help would be appreciated. Thanks.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like you are using tcsh as your shell. The instructions assume the bash shell (though they don't actually state this anywhere, which they probably should). Try typing "bash" to switch to the bash shell first of all, then repeat the instructions as given.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply that fixed my problem.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page