I have a problem in downloading a code
Hello Members;
I am a beginner in using linux. I found a difficulty to download and compile a code. the source is in tgz. I want to download fiscof 2 on a new computer and I couldn't. I did the following steps: 1. extract files from tgz file by using gnu zip command 2. I tried to use make command by this way; make -f fiscof2-237.tgz but there is a message like that fiscof2-237.tgz:1:*** missing operator. stop. how I could handle this problem to download the code and activate it to be run in my computer |
A tarball is not just a zipped file. It's a compacted archive which has to be unpacked using the tar command. The correct syntax is tar -xf filename. This creates a directory which you must enter using cd directoryname. Now list the files. There should be a README and perhaps an INSTALL. Read them carefully and they will tell you what to do next.
The commonest sequence of operations is Code:
./configure |
you need to extract *.tgz with tar:
Code:
tar xf <filename>.tgz |
I have found poor information regarding installing the code in the readme file just only the following sentence:
what should I do after that. Built-in simultaneous visualization functions are depended on two libraries, namely "Frames" and "gdf". As line charts and contour plots for physical values are depended on "Frames", you must install "Frames" first. If you do not want to use these features, you need not install "Frames" and you must use "frames_stub.f90" instead of "frames.f90" in Makefile. As animation GIF files for physical values are depended on "gdf", you must install "gdf" first. If you do not want to use these features, you need not install "gdf" and you must use "gdfx_stub.f90" instead of "gdfx.f90" in Makefile. |
Where did you get this package from? Can you give us a link? It will be easier to work out what is going on if people can actually look at the files themselves.
Files with an .f90 suffix are written in Fortran, and that's unusual for Linux software. |
every time, I am trying to use makefile the answer is : command not found.
I tried to download it from this webpage: https://www.gnu.org/software/make/ after I download makefile, I find also the same problem for Makefile command and make -f command always there is message that : f951:error: code model 'medium' not supported in the 32 bit mode. make:***[parameter.mod] Error 1 How to solve this problem to could compile my code |
what kind of os is it?
|
it is :
linux sms 3.2.0-67-generic-pae #101-Ubuntu SMP Tue Jul 14 18:04:54 UTC 2014 i686 athlon i386 GNU/Linux |
so you should try:
apt-get install make or similar to install make, do not download "something" |
there is a message :
No command apt found. are you sure from the command |
You certainly should never try to build a standard program like make! Always get that sort of thing through your package manager. This isn't Windows you're using. In Linux you don't wander all over the Internet looking for software. You get it from your distribution's repository, using the package manager provided (which in your case means apt-get or synaptic).
Even with more obscure software like this fiscof thing, always try the repository first. You will probably find it there, especially with a big distro like Ubuntu. Building from source is the last resort unless you're doing it for fun or to prove something. PS: the command isn't apt, it's apt-get. |
Quote:
Code:
sudo /sbin/installpkg foo.tgz Comparatively, the usual and commonly used packaging for source files for building or compilation is *tar.bz <.bz2 or .tbz> which is extractable by the same tar or bzip2 command. Read manual Code:
man bzip2 Code:
tar xjf foo.tar.bz2 Quote:
Quote:
Code:
man make Hope that helps. Good luck. m.m. |
Quote:
also your steps is not working, I don't know what is the problem. no makefile command exist and make -f fiscof2.f90 is error. How I can build up and install the code after I extracted it by tar command |
Quote:
Hello I tried your command apt-get install make there is a message as following: E: couldn't open lock file /var/lib/dpkg/lock -open(13:permission denied) E:Unable to lock the administration directory (/var/lib/dpkg/), are you root? what this message mean. How to solve my problem regard make. |
Quote:
I tried this steps but also it doesn't work. could you give me other ideas |
All times are GMT -5. The time now is 07:17 AM. |