Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hallo, I'm trying to install a program, but I have a problem:
in the readme file there is this instruction:
"Source the .OpenFOAM-1.4.1/bashrc file by adding the following line to the end of your $HOME/.bashrc file:
. $HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc
Then update the environment variables by sourcing the $HOME/.bashrc file by typing in the terminal:
. $HOME/.bashrc "
It's the first time I use Linux: what have I to do?
OK, I added the command line, but when I type $HOME/.bashrc in the shell, I have the following error:
bash: ./.bashrc: Permission denied
Why?
Furthermor have I to type at end of the file:
$HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc
or
. $HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc
as in the istructions?
No, that's not right. Sourcing is really simple, you just enter this into your terminal:
source .bashrc
But you need to make sure that you are not working as root; if you do, you'll source the root's .bashrc instead of your own. That wouldn't break anything but neither would it help to get your application going.
As for the other question, I looked it up:
Quote:
Installation
After unpacking, the user should consult the $HOME/OpenFOAM/OpenFOAM-1.4.1/README file for installation instructions.
gcc installation
OpenFOAM should work with most recent system distributions of the gcc compiler so installation of a binary pack is optional. The binary pack was compiled using SuSE Linux version 10.1+ and is known to be incompatible with system utilities for earlier versions of SuSE Linux.
JAVA installation
JAVA is required to run the FoamX case manager only; if you don’t use FoamX, you don’t need JAVA. Recent releases of the Linux operating system should contain a version of JAVA that is compatible with FoamX. To use the JAVA supplied with the system, you need to set the $JAVA_HOME environment variable to the path of the installation, e.g. ‘/usr’. This is set in the $HOME/OpenFOAM/OpenFOAM-1.4.1/.bashrc (or .cshrc) file.
Hmm, that last part looks awfully confusing. Can you tell me whether there is a hidden bashrc or a cshrc file inside your extracted /openFoam/OpenFoam-1.4.1.?
Have you been able to take a look at Appendix A of the README yet? I'm not sure whether it isn't too much techno babble but it does explain what needs to be done. It would appear that you need rsh-server rather than telnet. Bear in mind that most Linux distributions do not automatically enable a service (such as ssh or rsh) after install - you need to do that yourself. That may explain why your application doesn't find ssh or rsh. And there is some configuration to do as well . As I haven't used Suse for quite a long time, you'd better post any questions on this subject in the Suse forum. Of course, you can also use google. It's often faster than waiting for an answer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.