Fail to compile m4 package
Added by gadi balouj about 4 years ago
Hello, please help me solve this problem,
I use Cygwin under Windows Xp and I plan to install packages for compiling and running programs in Fortran and C languages and before, it is necessary to build and compile, and install packages. I tried to configure m4 but when I type "make" in Cygwin console I got these message:
$ make
C:/cygwin/bin/sh.exe
C:/cygwin/bin/make all-recursive
C:/cygwin/bin/sh.exe
make1: Entering directory `C:/cygwin/tc/m4-1.4.18'
make1: Nothing to be done for `all-recursive'.
make1: Leaving directory `C:/cygwin/tc/m4-1.4.18'
and when I type "make" and "make -j" in the / lib subdirectory I have these errors:
$ make
make (e=-1): Error -1
make: * [sys/stat.h] Error -1
$ make -j
make (e=-1): Error -1
make: [sys/stat.h] Error -1
make: Waiting for unfinished jobs....
make (e=-1): Error -1
make: [sys/time.h] Error -1
make (e=-1): Error -1
make: [sys/types.h] Error -1
make (e=-1): Error -1
make: * [sys/wait.h] Error -1
How can I fix these errors to install the package?
please do not hesitate to react with my post.
N.B: I use an offline cygwin version, so I can not add packages from Cygwin setup Installer
Replies (39)
RE: Fail to compile m4 package - Added by Ralf Mueller about 4 years ago
Hi!
I am sure m4 has a package in cygwin - no need to build it yourself as far as I know. How to build an install software can be quite different. you should read the documentation for each of them.
Basically Cygwin has packages for all you need to compile C or Fortran code: gcc, gfortran and all sorts of libs ready for developing. Just start https://cygwin.com/setup-x86_64.exe and check the package list.
cheers
ralf
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
Thank you for your reaction
I know packages exist on Cygwin setup but actually I can't use this feature because I am using an offline Cygwin version under Windows Xp platform. Also, Cygwin mirrors no longer support Windows Xp and I currently cannot change the current OS. please, if you have any idea to solve the problems, please let me know
RE: Fail to compile m4 package - Added by Ralf Mueller about 4 years ago
offline? uh, that's a serious problem. you will have to build everything including compilers. That's a no-go area for non-experienced ppl I think. If you cannot connect THIS computer to the internet, then use another XP machine with connection, set it up and just copy the installation directories. Might work out - no guarantees. and seriously think about replacing XP. I don;t know details about your use case, but the work you put into making something work that can easily replaced by something else is worth a thought.
cheers
ralf
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
Thank you for your response,
yes you are absolutely right, that needs experienced ppl. In fact, I cannot connect my cygwin version installed on Windows Xp to any Cygwin mirrors. Unfortunately, I do not have another machine to run Cygwin on Windows platform and this is the unique solution that I have it actually to install packages on my Laptop, so I am looking for compiling and installing some packages from sources to use them on my work. Please I need your help.
Regards,
RE: Fail to compile m4 package - Added by Ralf Mueller about 4 years ago
for building and running C or Fortran, you can also use Windows. E.g. the new Intel compiler framework is free of charge as far as I know. I doubt that it supports XP, though.
If you want to build and run applications, that need a Unix-like environment, you can also install Linux on your laptop and run the stuff natively. Not sure if this an option for you, but technically it certainly is.
If you must use XP, than you can use VirtualBOX (https://www.virtualbox.org/). It is a virtual machine software: you can install any linux distro from dvd/iso-image as a guest system on your laptop. but it needs more hardware resources then cygwin. So things will be a bit slower. Building all cygwin packages is something I would really try to avoid - you will spend days on this. Better use Linux as your host system. But if this is a solution depends on what else you want to do with your laptop, I guess.
hth
ralf
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
Thank you for your response
The Fortran and C programs that I have to compile and run are based on modules which split into multiple files. It's better to use Unix-like environment to compile and run such programs while Cygwin and MinGW are the most famous applications to build these on Windows platform. I prefer to use Cygwin but with the Windows Xp it is apparently hard. please I have two questions :
1 Wich Windows version mostly supported by Cygwin , If I would like to replace the Xp with another Windows like Win7 or Win10
2 Wich Linux distro you recommend it to install in my Laptop for compiling and running Fortran and C programs
Thanks
RE: Fail to compile m4 package - Added by Brendan DeTracey about 4 years ago
- If you do not need any Windows software, and you are not afraid of learning Linux, you should install Linux on your computer. On a few DVD's you could store the source code for almost any science software you would ever need.
- If you are doing science, and you are not afraid of the using a command line, you should choose Linux
- You can also run a lot, but not all, of windows software on a Linux computer. You just have to google how.
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
Thank you for your response,
From your comment, I can understand that,it is better to use Win7 to run Cygwin64. As far as I know Cygwin32 performs less more than Cygwin32. I want to learn Linux by installing a disto on anthoer machine but I do not know which Linux distro is more stable and suitable for compiling Fortran and C programs but, I am puzzled to insatll Ubuntu, or Xubuntu, or Lubuntu, I am waiting you to suggest which Linux distro I would be installed in my machine.I do not understand what do you mean by "On a few DVD's you could store the source code for almost any science software you would ever need." Is there any difficulties to compile and install any package from source on Linux platform? Can I install Microsfot Office and shoud I install Antivirus on the Linux machine?
Regards,
RE: Fail to compile m4 package - Added by Brendan DeTracey about 4 years ago
What are your computer's specifications?
Edit: What version of Microsoft Office?
Edit2: Google "can I run microsoft office 365 on linux" with search option "Past Year". First result: https://www.onmsft.com/feature/microsoft-on-linux-its-a-lot-easier-than-you-think. Second result: https://build5nines.com/run-office-365-apps-on-ubuntu-with-an-open-source-web-app-wrapper
Write out a list of the Windows software you depend on, and then google if you can run it on linux. Do not include antivirus software on this list. This is your homework assignment.
Edit3: Any linux will do for compiling software with Fortran, C, C++, nearly any computer language you can think of. When you tell me your computer's sepcifications I can then recommend a linux.
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
In most cases I'll use a Desktop to install a Linux distro and then I will tell you the Desktop's characteristics. I prefer Microsoft officie 2007. I guess that there is no need to install Antivirus on a Linux machine. I am puzzled between Xubuntu I Ubuntu and I learned from internet Xubuntu is better than Ubuntu. Please let me know which is better ? I'll tell you the machine's specification. If I wish to compile packages like m4, autoconf, Cmake ... etc from sources it will be any issue like that I found on cygwin. Note that I am not very experienced on Linux.
Regards,
RE: Fail to compile m4 package - Added by Brendan DeTracey about 4 years ago
You will not have the same problem building from source as you did in cygwin because the installion instructions usually work. Is it possible to access Google when working at this computer? Perhaps a on smart phone? Being able to google solutions to your problems is the optimal solution to 99% of your computer problems.
If you want a couple suggestions on linux flavours, tell me your computer's RAM, GPU, CPU and disk sizes.
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
I hope that I won't encounter any difficulty to build packages from sources? yes Sir, I have internet access but I cannot connect to any Cygwin mirrors to add packages. I searched for a solution for the issue and I spend a lot of time to overcome this error and I am kind of lost where can I find a solution. I will tell you machine's specification to suggest to me a Linux distro
Thank you,
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
Desktop computer's specification:
Intel(R) Pentium(R) 4 CPU 3,20 GHZ, 496 Mo of RAM, and disk size 149 Go
Then when I have sufficient experience in handling Linux desktop, I'll install it in my Laptop
I am waiting for your suggestions.
Regards,
RE: Fail to compile m4 package - Added by Brendan DeTracey about 4 years ago
- You might not be able to run Microsoft office under Linux
- If you choose Linux you will need one that uses as little memory as possible
I think if you can live without Microsoft Office, you will still be better served with Linux on your computer. There are open source equivalents to Office, such as Libre-Office. You can import and export files in Office formats. The truth is, with that computer you are best doing as much work on the Linux command line as possible. Using modern graphical applications will be a struggle for it.
I'll get back to you later today or tomorrow with a Linux recommendation and installation advice. I must get back to my own work.
Last question:
Does your computer have a DVD? Do you have access to a computer with internet and a DVD burner? And do you have access to writable DVD's? If you do not, your situation might be impossible. A computer that old may only be able to install from Linux from a DVD or the internet.
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
I guessed that a RAM for desktop is sufficient enough for install a Linux distro. This machine will be used in most cases to compile and run programs on Fortran and C languages, but it's neccessary to use Microsfot Office. What do you mean with graphical applications like what please. I have a DVD and the machine can be connected to router using a internet cable as far as I know. Is it possible to run Linux from USB in this machine?
RE: Fail to compile m4 package - Added by Brendan DeTracey about 4 years ago
Have you considered mingw-w64? (http://mingw-w64.org/doku.php) If your code is not doing graphics, it would be the simplest solution.
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
I do not yet run the programs beacause I need a compiler that's why I used Cygwin but it no longer suppoorts Win XP. I think that MinGw needs a modern version of Win as well so the same problems would not have ecountered. I want to install a Linux distribution that requires less RAM and install the whole feature of that disro including some neccessary Windows applications and the rest of disk space I plan to install a moderne version of Win to install Cygwin. So I need your help and suggestion to do this, Please.
RE: Fail to compile m4 package - Added by Brendan DeTracey about 4 years ago
Dual booting is your solution: https://www.trishtech.com/2016/09/install-puppy-linux-in-dual-boot-mode-windows-10/
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
The machine is the 32-bit. It does work for it?
RE: Fail to compile m4 package - Added by Brendan DeTracey about 4 years ago
Dual boot does not care if your computer is 32 bit or 64 bit. The Puppy Linux has a 32 bit version, is very low resource, and based on Ubuntu. As for Windows, I would stay with XP. The minimum system requirements for Windows 7 are too great https://www.google.com/search?q=windows+7+minimum+system+requirement
Puppy Linux (http://www.puppylinux.com/)
Downloads (http://www.puppylinux.com/index.html#download), you want the version: ( Based on Ubuntu Bionic, x86 32-bit, BionicPup32 8.0)
Make sure you back up your files. You will need to first do a clean install of windows XP. You should then run a full disk check for bad sectors. FInally, you then reboot from a DVD with the Puppy Linux ISO and follow the instructions. It will ask if you want dual boot and how you want to partition your drive. You will be challenged by the amount of disk space you have. If you can install another disk, or a larger disk, you should do so.
Finally, are there any online computing resources you can access? For example, if you are working with CMIP6 and climate data there is: https://portal.enes.org/data/data-metadata-service/climate4impact-portal
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
Thank you very much,
I want to install a moderne version of Windows to insall an emulator Linux for that version. Cygwin no longer supports Wind Xp, that's why it's necessary to install version that enables to install packages from Cygwin mirrors. I ask if Windows 10 is enough stable and that requires 1 GB of RAM. I work in the modeling of phase systems so if you have any coumpting ressources it would be greatly helpful for me.
regards,
RE: Fail to compile m4 package - Added by Brendan DeTracey about 4 years ago
gadi balouj wrote:
Desktop computer's specification:
Intel(R) Pentium(R) 4 CPU 3,20 GHZ, 496 Mo of RAM, and disk size 149 Go
You don't have 1GB of RAM. Did you read the link I suggested?
Brendan DeTracey wrote:
As for Windows, I would stay with XP. The minimum system requirements for Windows 7 are too great https://www.google.com/search?q=windows+7+minimum+system+requirement
That computer will never run Win7 or Win10. It has a single core. Why would you need cygwin if you already have linux? That I can not understand, unless you are compiling code that must run under Windows.
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
Thank you for your response,
Yes it is true, I must first to run codes under Windows using the Cygwin compilers and the use of the Linux platform needs sufficient time to be familiarized with it(install sofwares and packages), and I have to conduct the work in brief notice
RE: Fail to compile m4 package - Added by Brendan DeTracey about 4 years ago
- Backup your files
- Download your Linux ISO and burn to DVD
- In WinXP run a full disk check for bad sectors. Let this run over-night
- Reinstall WinXP and Microsoft Office
- Reboot your computer from the Linux DVD and choose dual-boot install
- Install the packages you need for your work.
Depending on your internet speed and stability, this should only take a day. This will be much less time that trying to compile cdo without m4.
Nearly all the software you need you will be able to install easily in Linux from a Package Manager. This will include compilers and libraries.
You can debate my solutions, but they are what I would do if I were in your situation, given what facts you have told me.
I now suggest Lubuntu instead of Puppy Linux. It uses the same package management commands as Ubuntu. You will want Lubuntu 18.04.5 Bionic Beaver LTS (LXDE) 32 bit desktop. This appears to be the last Ubuntu version for 32 bit machines.
https://linoxide.com/distros/install-lubuntu-dual-boot-windows/
https://lubuntu.me/downloads/
https://manual.lubuntu.me/stable/
RE: Fail to compile m4 package - Added by gadi balouj about 4 years ago
Thank you for your response,
The dual boot is the best solution for me but the inconvenient is that I cannot access to any Cygwin mirrors under WinXp platform. Does the Reinstallation of WindXp resolve the issue of having difficulty to connect to Cygwin mirrors? Is there any moderne version of Windows for superold computers? I googled but I dont find any thing. I will try to boot with Lubuntu from a flash drive to see what happens, but I need a moderne Win version that builds the essential of OS!
Regards