General :: Command To Compile And Execute Fortran Program On System Machine?

Apr 8, 2010

Command to compile n execute a Fortran program on a Linux machine

View 6 Replies


ADVERTISEMENT

Software :: Fortran Compiler That Can Compile Progs On Machine / But Execute On Windows XP

Jan 7, 2010

i'm currently using the gnu compiler "gfortran" , but i don't think the executable files it creates are compatible with windows XP (though i may be mistaken). my boss needs a few simple programs that i have written, but i will not be able to compile the code on his pc. are there any compilers out there that i can use to create such executables?

View 3 Replies View Related

Ubuntu :: How To Compile And Execute IDL Program

Jan 24, 2010

Following is the IDL program found on the internet but i dont know how to compile and execute (even dont know can it be done under linux).

Code:

View 9 Replies View Related

General :: Cross-Compile Fortran And C To Windows Application

Apr 22, 2010

I have Slackware 13-64 bit and I would like to cross-compile some Fortran and C programs to windows 32 and 64 bit applications. The Linux versions utilize X11 for the graphical users interface. I have tried MINWG but I could not get it to work, either in pre-built binary or source code form. Is there a binary version that works on Slackware 13? Alternatively, is there another method available?

View 1 Replies View Related

General :: Write A Script To Execute A Fortran Code That Reads In Parameters From Keyboard Typing?

Apr 18, 2011

I am trying to write a script (especially C-shell) to execute a fortran code that reads in parameters from keyboard typing. I will have to process this .F code for many times with the parameters the same for all my data files, therefore, I don't have to type in everytime I execute the .F code. But I don't know what is the command in c shell to read in a text files that contains all the parameters I want and can make the shell read in appropriately to feed the .F code.

View 3 Replies View Related

General :: Setup A System To Allow Normal Users To Execute A Command Without Using Sudo?

Jan 5, 2011

I am trying to setup a system to allow normal users to execute a command without using sudo. Is this possible?

View 6 Replies View Related

Software :: Execute A Command In The C Program?

Jan 21, 2011

I am trying to execute a limux command in c program using system system call, but the dont want it to dump the output or error logs on the terminal.

View 2 Replies View Related

General :: Run Java Program In System(virtual Machine)?

Jul 3, 2011

How to run java programs on linux .Do i have to install any other software to run java program in my virtual linux system.I use Ubantu.

View 1 Replies View Related

Ubuntu :: Allow A Specific Group On Machine To Execute One Command With Sudo?

Aug 22, 2011

I'm trying to allow a specific group on my machine to execute one command with sudo without requiring a password, so what I want to do is add something like this to sudoers:

%groupName ALL = (ALL) NOPASSWD: /bin/bash /path/to/shfile.sh argument1 argument2

argument1 needs to be a url : http://subdomain1.subdomain2.domain.com

argument2 needs to be a path of the form /var/www/demo/SomeFolder/application/config/config.php

How do I put in a regex form that sudoers will understand ? I tried reading the sudoers manual, but it didn't help a lot .

View 1 Replies View Related

Ubuntu Multimedia :: Execute Command Using Php To Start Program That Grabs Screen From Webcam?

Apr 8, 2010

I'm trying to setup a webcam surveillance system. Zoneminder didn't work for me regardless of how I tried configuring it, so I gave up and have now settled on a more primitive solution. I've currently got 6 cams and looping streamer (webcam screen grabber) I can grab a picture from each camera with about a 1 second interval. The previous picture is overwritten and using javascript to reload the image continuously in a browser I get the desired "movie" effect I'm after. The problem however is that as soon as I start using streamer on more than two cameras at once I run into this little snag:

Quote:

libv4l2: error turning on stream: No space left on device
ioctl: VIDIOC_STREAMON(int=1): No space left on device

I've been searching around and it seems I need to increase my shared memory. I've done that (tried many different values and "solutions") but the problem remains the same.

My setup is as follows.

1.php (refreshes updated grab from camera 1 every second in the browser)
2.php (refreshes updated grab from camera 2 every second in the browser)
3.php (refreshes updated grab from camera 3 every second in the browser)
etc
etc.

Is it possible to use something like php exec to execute the command that starts 'streamer' that grabs the image from the specific webcam (/dev/video1 for 1.php and so forth) when 1.php is opened in the browser. Is this even possible, or am I just dreaming?

View 2 Replies View Related

Software :: MPICH2 Software Installation - Execute The Compile Command 'make' To Generate The Binary Codes Of MPI?

Jul 21, 2011

I'm new to linux, and I've been following a paper [URL] to build a linux cluster using RedHat 5. I'm up to part VII step 5, installing the message-passing software MPICH2-1.4, and I'm not quite sure how to "execute the compile command 'make' to generate the binary codes of MPI."

View 13 Replies View Related

Programming :: Python - Call Function From The Command Line After Compile The Program?

Dec 28, 2010

If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?

View 5 Replies View Related

Programming :: New MPICH2 Installation - Interfering - With -make - Cant Compile Fortran Programs

Jul 28, 2011

Actually I had a folder called Lib, in which I had a few libraries installed and configured.(MPI, PETSc, SLEPc) I accidently deleted (by rm) the contents of that folder.

Then I reinstalled MPI,PETSC,SLEPC using the same tarballs as earlier(thus, the version etc. is the same).

I already had a fortran program with many modules and subroutine files, and the corresponding makefile which used to compile and run fine. But now when I type "make" in the same directory as before, I get this: (shortened, many similar errors)

Code:

Firstly, why is mpif90 compiling my program when I didnt tell it to? In my makefile, I have specified gfortran as my compiler....nowhere have I even mentioned mpif90. Such a thing never used to occur before.

Also, if I rename file_variable.f to file_variable.f90, these errors dissappear (I understand why, but that is not the problem), but a new error comes:

Why is the new MPI installation interfering with make ? I want to go back to how things were before I stupidly broke all installations. The errors themselves are not the problem, the problem is why the new mpi installation is interfering with make.

It seems as if mpif90 has taken over make and gfortran. I suppose I didnt install it correctly, or probably I didnt uninstall the earlier one correctly.

Everything that worked earlier doesnt work suddenly. I use ubuntu 11.04 MPICH2-1.3.2

View 1 Replies View Related

Debian Programming :: Execute System Command Using Qt

Feb 19, 2014

I was writing code to execute system command, using GDM3 an logged in as root (just commented line #auth required

pam_succeed_if.so user != root quiet_success , in /etc/pam.d/gdm3).

When i execute:

Code: Select allvoid criarWindowsDialog::on_pushButton_2_clicked() {
    ui->commandTextEdit->append("Processo iniciado ...");
    QProcess processo;
    QString comando;
    QStringList args;
    QString fullCommand;
    QString stdOut;
    QString stdError;

[CODE]..

View 0 Replies View Related

Ubuntu :: Execute System Command With Perl?

Jun 13, 2011

i want to execute system command with perlm but it gives me error.

command is wmic client. here it is

#!/usr/bin/perl
open (EP, "/home/user/Templates/domainpc.log");
while (<EP>) {
chomp;

[Code]....

View 1 Replies View Related

Programming :: Compile C++ Program Without Changing #include Line & Header Files Not System?

Apr 3, 2011

I have C++ source code(*.cpp) files that expects it's header files in System's include folder which is/usr/include.The cpp files has include lines like this:

Code:
#include <some.h>
#include <another.h>

[code]...

View 3 Replies View Related

General :: Focus On Command Line Machine System, Network Basics, And File Management Knowledge?

Feb 17, 2011

As a strategy for learning linux I have decided to adopt using a lean windows based approach. I want to focus on command line machine system, network basics, and file management knowledge. In other words find out how desktop manager does it's business, so I know how to master my machine, but by and large once I have made my choices, leave it alone to do just that.

I figure I should know how applications are internally configured etc., but I also figure an apps GUI and config choices should take care of installations, and program usage as in M$ windows. Surely taking care of an applications dependencies are the responsibility of the developer, are they not?

I am working my way through "Rute User's Tutorial and Exposition (Version 1.0.0)" right now for an overall viewpoint. Can anyone suggest a specific source for a point by point explanation of the command basis of a generalised "desktop management" application (KDE,LXDE)? Better yet would be if it had some parallel comparison of the varied approaches taken by different distributions of linux.

A secondary question, is that allowed? Up to a certain point in Ms windows, a thorough knowledge of DOS 6.xx would theoreticaly enable one to more or less duplicate the actions of the windows overlay. Is there a basic distribution (or subset in all of them maybe?) of linux that would be consistent with that paradigm? What would be analogous to DOS batch files, or GM-Basic? Oh! that's 3.I am certainly appreciating the depth of this forum, and the breadth of knowledge among you forumite's. Reading it is time well spent.

View 7 Replies View Related

SUSE :: Automate Execute Command, Reboot And Execute Command?

Dec 1, 2008

Is there a way to execute some command and then after the command completes utomatically reboot the system and then after the system reboots execute another command ? For example look at the sequence shown below(1) Execute command-1(2) After the command-1 in (1) is completed,reboot the system (3) Execute command-2(4) After execution of command-2 reboot the sytemIs there a way i can automate this process so that i need not reboot the system manually

View 5 Replies View Related

Ubuntu :: Command To Run A Program Inside A Virtual Windows Machine?

Mar 12, 2011

Is there a way to run a non interactive program inside a virtual XP machine (virtualbox)?

I know that you can run programs on a remote machine if both machines are windoze, or if both are linux. but can you run one from the other?

View 3 Replies View Related

Programming :: Fortran Code On 32/64bit Machine

Jun 10, 2009

I'm not a Fortran coder but I need to call the sub-routine ADAPT.f from a c code.This subroutine calculates a multiple integral of a given function.My problem is that the c code works with no problem in a 32 bit machine but it does not in a 64 bit machine, and the problem seems to be related to adapt, which calculations gives a NA rather than the result of integration.Since fortran is quite obscure for me, I don't know why is this happening. Maybe I should change some data type (from real to double), but I'm not sure. Does anyone have a clue?

View 3 Replies View Related

Debian :: Execute Command Mactime In Order To Control Changes Made To The File System?

Apr 23, 2011

I am trying to execute command mactime in order to control changes made to the file system, but I am getting an error. I am running the shell as root, and it is the first time I run the command in this system - Debian Squeeze up to date. The I/O is as follows:

# mactime 3/1/2011
cannot exec /bin/date: No such file or directory
cannot exec /bin/hostname: No such file or directory
cannot exec /bin/uname -n: No such file or directory
Cannot open /var/cache/tct/data/Amnesiac/body: No such file or directory

The first three lines of output are the ones that are worrying at the moment; I am not concerned with the last. Although error messages suggest the programs date, hostname and uname do not exist in /bin directory, they are available as shown by

[Code]...

View 3 Replies View Related

General :: Execute The Same Windows Service On Machine?

Jan 24, 2011

I developed windows services and it is running on my Machine. Currently I am using Windows XP Service pack2 Operating System. My requirement is how to execute the same windows service on Linux Machine. I installed Linux Version 2.6 on my machine

View 4 Replies View Related

General :: Only Execute 2nd Command On Successufl Execution Of 1st Command?

Aug 19, 2009

I have a script which builds a project and then runs junit tests. However, if the build fails, the junit tests fail with the same error message.Therefore the command which runs the junit tests should only be executed if the build was successful.

View 3 Replies View Related

Programming :: Get An Error Using A Namelist In A Fortran 90 Program ?

Aug 26, 2010

I have a program which reads some parameters in from an input file before solving a differential equation. This program compiles fine, I'm using Numerical Algorithms Group (NAG) libraries to solve the differential equation so I'm also the NAG compiler called nagfor.

The namelist I have is declared as follows:

And the input file is:

When I run the code I get the following error message:

I really can't see what's wrong with this code.

Also, I'm using Fedora 11, and running the code in tcsh if this is relevant.

View 1 Replies View Related

General :: Cross Compile In 64 Bit Machine For 32 Bit Arm?

Nov 18, 2010

i have fedora 11(64 bit).i want to do the cross compilation for 32 bit arm processor.i install all required thing but any of the make command(make,make mrproper,defconfig) is not working.

View 8 Replies View Related

Fedora :: Fortran Program Gives Different Results Between F15 I686 And X86_64

Sep 2, 2011

I am having a problem with a simple program I wrote in Fortran (gfortran). This program basically reads a long list of numbers and makes some operations with them. Double precision is used in the variables and functions, and AFAIK everything is in order with the program. The thing is that I accidentally noticed that said program yields different results, and I am talking about integers being different, something noticeable. Apparently the offending chunk of code might be:

Code:

DOUBLE PRECISION FUNCTION tamano (x1,y1,z1)
DOUBLE PRECISION x1,y1,z1
tamano=dsqrt((x1)**2+(y1)**2+(z1)**2)

[code]....

One of the involved machines has F15 x86_64 and the other one F15 i686. My first guess is that this has something to do with how Fortran handles precision (which I supposed was the same for 32 and 64 bits). To compile the program I use:

Code:

gfortran --free-form -fno-whole-file program.f90

Is there another option I should pass the compiler to make sure the same precision is used in both cases? Or what can I do here?

View 3 Replies View Related

Ubuntu :: Error While Compiling Fortran Program With Gfortran

Apr 14, 2011

I've a FORTRAN program that I would like to compile in my machine. I've gfortran installed, so I issue the command: gfortran asc2bin.f write_geogrid.o

but this error are displayed

Code:
asc2bin.f:3.72:
INTEGER isigned,i,j,endian,wordsize,nx,ny,xllcorner,yllcorner,
1
Error: Invalid character in name at (1)

[Code].....

View 1 Replies View Related

Programming :: Fortran Program--encountered Run Time Error?

May 19, 2011

i am graduate student and my X colleague gave me this Fortran 77 program to run my result files with. She is no longer reachable. I compiled the following program with gfortran, it compiled well but, when i run it, gave me end of file error. My output file (which is the input file for this program (DFILE1) ) has about 78,000 lines of velocities of atoms (Vx, Vy, Vz with 1000 steps.. an example of some of the atom's velocities in the 1st step is given at the end of this program). I will be highly obliged if any one can help me with this.I run this program on opensuse linux 11.3 version /32 bit/i586

error message:

Code:
At line 124 of file v.autocorrelation.f (unit = 10, file = 'DFILE1')
Fortran runtime error: End of file

Code:
PROGRAM TCORR

COMMON / BLOCK1 / STORX, STORY, STORZ
COMMON / BLOCK2 / VX, VY, VZ
COMMON / BLOCK3 / VACF, ANORM
C *******************************************************************
code....

View 6 Replies View Related

General :: Execute A C Program - Segmentation Fault

Nov 17, 2009

I am using RHEL, and trying to execute a c program.I'm able to compile properly and execute until i reach a function getHandle, where the program gives a segmentation fault. Segmentation fault occurs in getHandle().

Here is the code:

View 3 Replies View Related

General :: Compile Linux Kernel For Different Machine?

Feb 10, 2011

I am new to kernel development,and I have to compile a kernel with some specific features and then install it on some machines.The problem is that these machines are slow,and hence I want to compile them on a fast desktop once and then install them on the machines.I am following this guide from Ubuntu wiki.

So what I plan to do is, download the source and generate a config file on one of the slow machines, copy both to the faster machine, generate the image on the faster machine and then install it on all the slow machines. The slow machines are almost identical (same cards, processors, OS etc.) but different from the fast machine(different OS and processor). So will this work or not?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved