LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Software installation (https://www.linuxquestions.org/questions/linux-newbie-8/software-installation-615684/)

morfeus80 01-23-2008 04:08 AM

Software installation
 
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?

jay73 01-23-2008 04:44 AM

.bashrc is a hidden file in your home directory. You can make it visible from your desktop menu bar. For example, Gnome has the option under "View".

Open the file and put the line in at the end.

Finally, you need to source the file. You can do that from the command line but simply logging out and back in works just as well.

morfeus80 01-23-2008 05:09 AM

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?

jay73 01-23-2008 05:54 AM

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.?

morfeus80 01-23-2008 09:33 AM

I solved the problem: i had to put the "." (dot) before the command lines!

Now I have another problem: the program says I don't have remote shell available and I need an ssh or rsh.
What have I to do?

jay73 01-23-2008 09:53 AM

If neither is installed yet, install openssh-server/client and/or rsh. Just use Yast to search and install. Btw, rsh is less secure than ssh.

morfeus80 01-23-2008 10:57 AM

I have both installed, but I have always that message! It says that they are not available and that telnet is not running!

jay73 01-23-2008 11:30 AM

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.


All times are GMT -5. The time now is 08:28 AM.