Jump to content

cygwin error when using make with apache 2.4


hisoka

Recommended Posts

I download Apache 2.4.18 from this site :

 

http://httpd.apache.org/download.cgi

 

The file name I downloaded is : httpd-2.4.18.tar.bz2

 

I extracted it then I tried to compile it , in my windows xp 32 , using Cygwin

 

I opened my Cygwin and went to the folder in which there are the files that should be compiled that is:

 

/cygdrive/c/Program Files/httpd-2.4.18

 

First to make things more clear I will list all folders and files in httpd-2.4.18 :

 

using ls I got :

 

 

ABOUT_APACHE config.layout InstallBin.dsp README
acinclude.m4 config.log LAYOUT README.cmake
ap.d config.nice libhttpd.dsp README.platforms
Apache.dsw config.status LICENSE ROADMAP
apache_probes.d configure Makefile server
Apache-apr2.dsw configure.in Makefile.in srclib
build docs Makefile.win support
BuildAll.dsp emacs-style modules test
BuildBin.dsp httpd.dsp modules.c VERSIONING
buildconf httpd.spec NOTICE
CHANGES include NWGNUmakefile
CMakeLists.txt INSTALL os

 

then I used the ./configure command in Cygwin for

 

/cygdrive/c/Program Files/httpd-2.4.18

 

like this :

 

/cygdrive/c/Program Files/httpd-2.4.18

$ ./configure

 

I did not got an error

 

then

 

/cygdrive/c/Program Files/httpd-2.4.18

$ make

 

and then I got an error : make : *** No targets . Stop

 

So I looked in this site for information about that error :

 

https://www.gnu.org/software/make/manual/html_node/Error-Messages.html

 

There it is mentioned the following :

 

 

‘No targets specified and no makefile found. Stop.’ ‘No targets. Stop.’

The former means that you didn’t provide any targets to be built on the command line, and make couldn’t find any makefiles to read in. The latter means that some makefile was found, but it didn’t contain any default goal and none was given on the command line. GNU make has nothing to do in these situations. See Arguments to Specify the Makefile. ( I looked there too)

 

 

So I put :

 

/cygdrive/c/Program Files/httpd-2.4.18

$ make -f Apache.dsw (target file)

 

But I got another error :

 

 

‘missing separator. Stop.’ ‘missing separator (did you mean TAB instead of 8 spaces?). Stop.’

This means that make could not understand much of anything about the makefile line it just read. GNU make looks for various separators (:, =, recipe prefix characters, etc.) to indicate what kind of line it’s parsing. This message means it couldn’t find a valid one.

One of the most common reasons for this message is that you (or perhaps your oh-so-helpful editor, as is the case with many MS-Windows editors) have attempted to indent your recipe lines with spaces instead of a tab character. In this case, make will use the second form of the error above. Remember that every line in the recipe must begin with a tab character (unless you set .RECIPEPREFIX; see Special Variables). Eight spaces do not count. See Rule Syntax

 

 

According to the explanation , it seems to me that the target file I am providing to make is not the right one

 

I am stuck and confused do not know what to do and how to compile the file . I need help

 

 

 

  • Like 1
Link to comment
Share on other sites

I moved this thread to the general forum, as questions about compiling Apache in Cygwin don't belong in the PHP forum.

 

This question is pretty out of scope for this forum. We aren't a support forum for either Apache or Cygwin. I would recommend looking for another place to ask questions like this, or find a guide like this one:

 

http://umusebo.com/installing-and-configuring-apache-php-mysql-on-cygwin/

Link to comment
Share on other sites

In general, yeah, because this is a forum for web development. You are not likely to find people here who are familiar enough with something like Cygwin to give you a good answer without doing all of the research. The forum has specific sub-forums for the various categories, and if the W3Schools site does not have a tutorial for something then it may be difficult to find help for that on the forum. Maybe someone with the necessary experience can address your questions here, or maybe not. There should be other resources online for getting help with Cygwin, Apache, or C compilers in general.

Link to comment
Share on other sites

To be honest I could not find a forum that helps solving problems , specifically , about compiling in Cygwin . The majority of forums are about Linux . I like Linux a lot . However , although Cygwin commands are all Linux , in these forums , people can help only about Linux UNIX things not about compiling source code in Cygwin errors . Moreover , there is a good site which is http://stackoverflow.com

 

But you should follow a very strict rules in how to ask a question , in properly formatting the question and even so you do not have a guarantee to get an answer and even if you get an answer , you get in two days . At least this was my experience there . They make a ing science and a political matter from putting a simple question . For me , the best Forum ever is http://w3schools.invisionzone.com . Without this forum I could not have been advancing and progressing for an inch and to be honest , during my participation in many forums , I could not find a skillful guy like you Justsomeguy . At least , until now . May be you can provide me Justsomeguy with a Cygwin compiling source code forum that you evaluate as good as http://w3schools.invisionzone.com that can help me solve these compiling Cygwin problems and errors .

Link to comment
Share on other sites

Stack Overflow has strict question policies because if you don't ask the right question people can't give you a correct answer. I deal with enough malformed questions on this forum to know that.

 

An important part of getting the information you want is knowing how to ask questions.

Link to comment
Share on other sites

If it was a problem I was trying to solve for myself then I would do as much research online as necessary to find the sources of the problems and figure out what the solutions are. If it's really a problem with the system you're using then someone else will have run into it. If you can't find any information then maybe it's not a problem with the system, maybe the problem is how you set it up.

Link to comment
Share on other sites

what do you mean by :

 

If it's really a problem with the system you're using then someone else will have run into it

 

 

??

 

and what do you mean by the word "system"? can you specify it more word "system"?

Edited by hisoka
Link to comment
Share on other sites

it makes good sense what you wrote but justsomeguy in the

Installing winpcap and configure it with cygwin thread

I got a problem with the source code , when trying to compile it , but I could do not see any one , in Google , who run into it before me . So in case I cannot find helpful resources with the problem I get and I cannot find someone who run into it before me plus , it is not the consequence of me setting it wrongly like in the thread above . How can I solve the problem ?

Edited by hisoka
Link to comment
Share on other sites

If you installed and set up everything correctly then I suppose you go through and research each individual error message

 

 

If , after installing and setting up everything correctly but there are still errors that should be investigated and corrected , then the problem should reside in the source code that is written by some people who neither have the courage to write , publicly :"the source code above should be corrected before it can properly compiled" nor can they compile their and provide us with a ready compiled software that can be downloaded and used . Look what happened in the

Installing winpcap and configure it with cygwin

why should I go through and research each individual error message ? it is none of my business . it is the business of the one who wrote it to correct it and not throw it away and wait from other to correct it . The idea of compiling a software from a source code is destructive for newbies like me who want to use some software . It is like some one who wants to buy a ship for sailing , he buys , for a cheap price , a ship full of holes and invest time and money and nerves to repair it and therefore pay as twice the price of a new ship . Meanwhile , he could ,from the beginning, pay third of all that money to buy a new , stable ship . In other words it is the lack of programming skills , knowledge and software that push newbies like me to try to compile a software from a source code . So the solution to these both threads is either to use a ready compiled software or learn programming languages very well and write his own program .

Link to comment
Share on other sites

why should I go through and research each individual error message ?

Because you're trying to learn how to program, you enjoy the challenge of figuring out how things work and changing them, etc. If those things aren't true, then you're not using the right software, and you're probably not on the right forum either. And, if those things aren't true, then I have absolutely no idea why you are even bothering to try and compile Apache inside Cygwin. There's already an Apache binary available, why not just use that? There's already a Winpcap binary, why not just use that?

 

You're coming to a forum for people to learn how to program, and you're complaining that trying to compile C programs in a Unix-like environment inside Cygwin isn't working correctly on a Microsoft operating system that is nearly 15 years old, and you don't want to be bothered to figure out why. Apparently you just want things to work without you having to do anything. If that's the case, then trying to compile C programs inside Cygwin on Windows XP probably isn't the best way to go about running the software that you want to use.

 

it is the business of the one who wrote it to correct it and not throw it away and wait from other to correct it

Winpcap obviously compiles and works correctly, because there are binaries available. Why doesn't it work for you? I don't know, I'm not sitting there watching you. And I'm not going to do all of the research necessary to fix your problem when you're the one that should be doing that research. And, again, if you're not trying to learn how to program (and let me stress that knowing how to do research and how to fix problems is a major part of programming), then I don't know why you're trying to compile everything in the first place. If you want a computer that you don't have to think about using, go pay Apple and be done with it. Figure out how Apple wants you to use their computer and it will work like they say. Otherwise, if you're going to complain about doing research to get things to work the way you want them then you're not going to get very far.
  • Like 1
Link to comment
Share on other sites

 

It is like some one who wants to buy a ship for sailing , he buys , for a cheap price , a ship full of holes and invest time and money and nerves to repair it and therefore pay as twice the price of a new ship . Meanwhile , he could ,from the beginning, pay third of all that money to buy a new , stable ship .

I think the problem here is that you intentionally bought the DIY model, but for whatever reasons aren't understanding what that actually entails.

 

When I taught myself how to setup Linux servers for my CI environment, yes most of the time I got lucky and installing Java, Jenkins, Node, Apache, PHP etc just worked, but then when I wanted to configure VHosts and routing and all that jazz and I stumbled and some things didn't worked right out of the box. My first reaction was not to blame the tools or the author's right off the bat, since I was the n00b, it had to be on me to resolve and do the leg work first to make sure I was following the instructions and paying careful attention to the errors I was seeing, as I was the one doing it for the first time. Sure documentation wasn't always the most natural or intuitive, but eventually I just had to find the right command and then it worked, and I learned more along the way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...