CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Issue with bashrc file encountering unexpected EOF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2017, 12:46
Default Issue with bashrc file encountering unexpected EOF
  #1
New Member
 
Mitch Lovelace
Join Date: Jun 2017
Posts: 1
Rep Power: 0
TexasTechsan is on a distinguished road
Hello all,

I'm attempting to fresh install OpenFOAM-2.4.0 onto a fresh Ubuntu 14.04 LTS VirtualBox for a college course and have run into a problem while running bashrc.

I have followed line-by-line the guide given by Chalmers
http://www.tfd.chalmers.se/~hani/kur...rOwnLaptop.htm

and also the guide given by the OpenFOAM wiki
http://openfoamwiki.net/index.php/In...M-2.4.0/Ubuntu

Both of which have had the same result. When I reach the point of creating an alias for bashrc and then attempt to run it, I receive the following errors:
bash: /home/user/.bashrc: line 119: unexpected EOF while looking for matching '
"
bash: /home/user/.bashrc: line 120: syntax error: unexpected end of file


When I went to look at line 119 & 120 I couldn't see an issue. Here is line 118 thru 121:
$WM_PROJECT_VERSION

# Location of site-specific templates etc
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Needless to say I am thoroughly confused and unsure how to proceed. Any insight that y'all can provide would be lovely.
TexasTechsan is offline   Reply With Quote

Old   June 25, 2017, 14:07
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: You need to edit the file "/home/user/.bashrc" and look for the lines that you've added.

I'm guessing that you have something like this:
Code:
alias OF24x='. $HOME/OpenFOAM/OpenFOAM-2.4.x/etc/bashrc
This is missing a quote character ' at the end of the line, which is what bash is complaining about.
The example line should look like this:
Code:
alias OF24x='. $HOME/OpenFOAM/OpenFOAM-2.4.x/etc/bashrc'
notice the quote at the end of the line.

This way the quoted part starts after the equal sign and ends before the end of the line.
By the way, EOF stands for "end of file" .
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
installation of open foam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 03:19.