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

Installing OpenFOAM 1.7.x on CAElinux without Internet Connection

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2011, 08:54
Default Installing OpenFOAM 1.7.x on CAElinux without Internet Connection
  #1
New Member
 
Joel Lehikoinen
Join Date: Jun 2011
Posts: 26
Rep Power: 14
joel.lehikoinen is on a distinguished road
Hi,

I need OpenFOAM 1.7.x for my work, but I'm having difficulties installing it. Unfortunately the IT regulations of my employer prohibit connecting Linux machines to the Internet, so I cannot use git to install the version 1.7.x. I have downloaded the OpenFOAM 1.7.x source code on another machine and copied it to my CAElinux machine.

The first step in the installation process is setting the environment variables. But when I try to source etc/bashrc file, I just get an error message:
Code:
: command not found
: command not found
: command not found
: command not found
': not a valid identifierDIR
: command not found
: command not found
'ash: etc/bashrc: line 78: syntax error near unexpected token `
'ash: etc/bashrc: line 78: `_foamSource()
I don't really have an idea what's happening here. I have OpenFOAM 1.7.1 installed and working. Sourcing the 1.7.1-version of bashrc works fine. My install directory is the standard $HOME/OpenFOAM/ where the different versions are in their respective folders.

Do I need to do something before I can run the etc/bashrc script or why does it not work?

Thank you for your help,
Joel
joel.lehikoinen is offline   Reply With Quote

Old   June 13, 2011, 16:03
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Greetings Joel,

Indeed, those are some very strange errors! Specially this one:
Code:
: command not found
The ":" is suppose to be a null command, i.e. a stub for doing nothing!

OK, lets try to isolate and conquer:
  1. How are you sourcing each bashrc file for each OpenFOAM version? In other words, is something like this:
    Code:
    source /opt/openfoam171/etc/bashrc
    defined in your $HOME/.bashrc file? If so, don't.
    Use something like this instead:
    Code:
    alias of171='source /opt/openfoam171/etc/bashrc'
    alias of17x='source /opt/openfoam171/etc/bashrc'
    Then whenever you want one of the versions, start a new terminal window/tab and run the respective alias name, i.e. of171 or of17x.
  2. It's possible that the files you downloaded were somehow damaged. Remove the current 1.7.x folder, download and unpack them again.
    By the way, how exactly did you download and unpack them, so we can be certain of your steps and also be able to reproduce them if necessary...
OK, to continue I'll need some more feedback.

In the mean time, here are two links to my blog on how to still have git on an internetless machine:

Best regards,
Bruno
joel.lehikoinen likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 14, 2011, 05:16
Default
  #3
New Member
 
Joel Lehikoinen
Join Date: Jun 2011
Posts: 26
Rep Power: 14
joel.lehikoinen is on a distinguished road
Hi,

thank you very much for your help. I managed to install version 1.7.x with the help of the advice from your blog post. I'd guess the files were somehow corrupted, even though at least bashrc opened fine in a text editor. I didn't actually download the non-working source myself, my boss just gave it to me. He's not here this week so I can't be sure, but it could be that maybe he tried to download directly to the USB drive, which usually has bad consequences...

Anyway, thank you very much for you help!
joel.lehikoinen is offline   Reply With Quote

Old   June 14, 2011, 11:09
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Hi Joel,

Quote:
Originally Posted by joel.lehikoinen View Post
but it could be that maybe he tried to download directly to the USB drive, which usually has bad consequences...
Indeed, removable storage can be quite unstable for these kinds of file operations! I remember the days back when we only had diskettes for data transport... even then, direct file operations could end up very badly...

Quote:
Originally Posted by joel.lehikoinen View Post
Anyway, thank you very much for you help!
You're welcome! I'm glad I could help you so quickly

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
bashrc, caelinux, install


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
Installing OpenFOAM 1.7.1 on AIX 5.3 hrn OpenFOAM Installation 3 October 30, 2010 07:33
OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x wyldckat OpenFOAM Bugs 18 October 21, 2010 05:51
Installing OpenFOAM 1.6 on Ubuntu 10.4 sda OpenFOAM Installation 5 May 27, 2010 20:19
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 04:48
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 16:37.