You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Zeno Davatz <zd...@gmail.com> on 2011/02/09 10:08:02 UTC

MinGW, Apache, APR and MSYS

Dear Günter

I am changing the subject line.

On Wed, Feb 9, 2011 at 9:28 AM, Guenter Knauf <fu...@apache.org> wrote:

> Am 09.02.2011 09:14, schrieb Zeno Davatz:
>>
>> This is my Path:
>> C:\tools;C:\Program
>>
>> Files\PostgreSQL\8.4\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Ruby-1.8.6-oniguruma\bin;C:\Program
>> Files\7-Zip;C:\MinGW\bin;C:\Program
>>
>> Files\Git\bin;C:\ImageMagick-6.5.6-Q8;C:\Apache2.2\bin;C:\MinGW\msys\1.0\bin;C:\Python25
>
> oh, and BTW. here I see something which may be the reason for the failure
> with APR configure: you have a path to Git before the path to MinGW in your
> search, and this might cause trouble since both Git and MinGW provide a MSYS
> where Git's one is incomplete ...
> I'd suggest that you remove both paths from search path since normally they
> are not needed at all; instead you should call the batches coming with these
> packages from a desktop link which is usually sufficient since the launched
> bash inherits the global search path and adds other internal ones.

How about switching the order? The reason why I done this is because I
want to be able to use git directly from my commandline window
_without_ having to open a separate window, just to be capable to use
GIT. I want one command windows for everything, same like on Linux.
Anything else does not seem efficient to me.

> Oh, and AFAICT adding a seach path to C:\Apache2.2\bin is also not really
> needed since httpd.exe looks anyway into this folder 1st for its dependent
> DLLs.

But can I then still start Apache from the command line?

Best
Zeno

Re: MinGW, Apache, APR and MSYS

Posted by Zeno Davatz <zd...@gmail.com>.
Dear Günter

On Wed, Feb 9, 2011 at 10:08 AM, Zeno Davatz <zd...@gmail.com> wrote:

> On Wed, Feb 9, 2011 at 9:28 AM, Guenter Knauf <fu...@apache.org> wrote:
>
>> Am 09.02.2011 09:14, schrieb Zeno Davatz:
>>>
>>> This is my Path:
>>> C:\tools;C:\Program
>>>
>>> Files\PostgreSQL\8.4\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Ruby-1.8.6-oniguruma\bin;C:\Program
>>> Files\7-Zip;C:\MinGW\bin;C:\Program
>>>
>>> Files\Git\bin;C:\ImageMagick-6.5.6-Q8;C:\Apache2.2\bin;C:\MinGW\msys\1.0\bin;C:\Python25
>>
>> oh, and BTW. here I see something which may be the reason for the failure
>> with APR configure: you have a path to Git before the path to MinGW in your
>> search, and this might cause trouble since both Git and MinGW provide a MSYS
>> where Git's one is incomplete ...
>> I'd suggest that you remove both paths from search path since normally they
>> are not needed at all; instead you should call the batches coming with these
>> packages from a desktop link which is usually sufficient since the launched
>> bash inherits the global search path and adds other internal ones.
>
> How about switching the order? The reason why I done this is because I
> want to be able to use git directly from my commandline window
> _without_ having to open a separate window, just to be capable to use
> GIT. I want one command windows for everything, same like on Linux.
> Anything else does not seem efficient to me.

Ok, this helped. APR from SVN now gives me a clean configure when I do

C:\Users\zdavatz\software\apr>sh buildconf

Nice! Once again thanks for the hint! This should go into the
documentation somewhere. Please let me know where I can update the
documentation for the next Greenhorn-Zeno around the corner. I guess
this will be the Apache-Wiki.

I would also add some steps howto install MinGW and run "mingw-get
install *package*" or "mingw-get update"

Best
Zeno

Re: MinGW, Apache, APR and MSYS

Posted by Zeno Davatz <zd...@gmail.com>.
Dear Günter

On Wed, Feb 9, 2011 at 10:08 AM, Zeno Davatz <zd...@gmail.com> wrote:

> On Wed, Feb 9, 2011 at 9:28 AM, Guenter Knauf <fu...@apache.org> wrote:
>
>> Am 09.02.2011 09:14, schrieb Zeno Davatz:
>>>
>>> This is my Path:
>>> C:\tools;C:\Program
>>>
>>> Files\PostgreSQL\8.4\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Ruby-1.8.6-oniguruma\bin;C:\Program
>>> Files\7-Zip;C:\MinGW\bin;C:\Program
>>>
>>> Files\Git\bin;C:\ImageMagick-6.5.6-Q8;C:\Apache2.2\bin;C:\MinGW\msys\1.0\bin;C:\Python25
>>
>> oh, and BTW. here I see something which may be the reason for the failure
>> with APR configure: you have a path to Git before the path to MinGW in your
>> search, and this might cause trouble since both Git and MinGW provide a MSYS
>> where Git's one is incomplete ...
>> I'd suggest that you remove both paths from search path since normally they
>> are not needed at all; instead you should call the batches coming with these
>> packages from a desktop link which is usually sufficient since the launched
>> bash inherits the global search path and adds other internal ones.
>
> How about switching the order? The reason why I done this is because I
> want to be able to use git directly from my commandline window
> _without_ having to open a separate window, just to be capable to use
> GIT. I want one command windows for everything, same like on Linux.
> Anything else does not seem efficient to me.

Ok, this helped. APR from SVN now gives me a clean configure when I do

C:\Users\zdavatz\software\apr>sh buildconf

Nice! Once again thanks for the hint! This should go into the
documentation somewhere. Please let me know where I can update the
documentation for the next Greenhorn-Zeno around the corner. I guess
this will be the Apache-Wiki.

I would also add some steps howto install MinGW and run "mingw-get
install *package*" or "mingw-get update"

Best
Zeno

Re: MinGW, Apache, APR and MSYS

Posted by Zeno Davatz <zd...@gmail.com>.
Dear Günter

On Wed, Feb 9, 2011 at 10:42 AM, Guenter Knauf <fu...@apache.org> wrote:

> Am 09.02.2011 10:08, schrieb Zeno Davatz:
>>
>> How about switching the order? The reason why I done this is because I
>> want to be able to use git directly from my commandline window
>> _without_ having to open a separate window, just to be capable to use
>> GIT. I want one command windows for everything, same like on Linux.
>> Anything else does not seem efficient to me.
>
> ok, but the Q is here what do you all want to use? Look, the Windows Git
> package as well as the MinGW package come both with its own MSYS which has a
> bunch of same tools and Perl but at different versions, so clashes are
> foreseeable; also both prefer usage from bash rather than cmd.exe where Git
> seems to offer both. So depending on what you just intend to do you should
> consider to create a batch file which calls cmd.exe and sets paths
> accordingly to your needs rather than adding global search paths.

Ok, I will consider this.

>>> Oh, and AFAICT adding a seach path to C:\Apache2.2\bin is also not really
>>> needed since httpd.exe looks anyway into this folder 1st for its
>>> dependent
>>> DLLs.
>>
>> But can I then still start Apache from the command line?
>
> no, not then via search - only via full path; but here's the Q if you really
> need that? usually calling httpd.exe from commandline is anyway only for
> debugging purpose, else you run the service; and the service you can
> start/stop from comamndline with:
> net [start|stop] apache2.2
>
> BTW. there are also other nice addons for Windows, f.e. CmdHere which opens
> a cmd box with a rightclick on a folder:
> http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
> this can save you a lot of commandline 'cd folder' and also then reduces
> need for many search paths ...

You see, as I come from Linux, using Gentoo every day, I am used to
the command prompt. I never head into windows using Windwos-Explorer.
That confuses me ;) - [ But the more our software runs on Windows, I
may need exactly what you say ;) ] - So what I am trying to do is the
same as on Linux: One command prompt for everything. This way, I have
less of a hassle to figure it all out. Of course I will bump into some
issues now and then but my testing becomes more streamlined. Or that
is what I think at the moment.

Generally speaking I still need to understand the Windows-Path-World
better. So comes time, I will try to understand better.

Best
Zeno

Re: MinGW, Apache, APR and MSYS

Posted by Guenter Knauf <fu...@apache.org>.
Zeno,
Am 09.02.2011 10:08, schrieb Zeno Davatz:
> How about switching the order? The reason why I done this is because I
> want to be able to use git directly from my commandline window
> _without_ having to open a separate window, just to be capable to use
> GIT. I want one command windows for everything, same like on Linux.
> Anything else does not seem efficient to me.
ok, but the Q is here what do you all want to use? Look, the Windows Git 
package as well as the MinGW package come both with its own MSYS which 
has a bunch of same tools and Perl but at different versions, so clashes 
are foreseeable; also both prefer usage from bash rather than cmd.exe 
where Git seems to offer both. So depending on what you just intend to 
do you should consider to create a batch file which calls cmd.exe and 
sets paths accordingly to your needs rather than adding global search paths.

>> Oh, and AFAICT adding a seach path to C:\Apache2.2\bin is also not really
>> needed since httpd.exe looks anyway into this folder 1st for its dependent
>> DLLs.
>
> But can I then still start Apache from the command line?
no, not then via search - only via full path; but here's the Q if you 
really need that? usually calling httpd.exe from commandline is anyway 
only for debugging purpose, else you run the service; and the service 
you can start/stop from comamndline with:
net [start|stop] apache2.2

BTW. there are also other nice addons for Windows, f.e. CmdHere which 
opens a cmd box with a rightclick on a folder:
http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
this can save you a lot of commandline 'cd folder' and also then reduces 
need for many search paths ...

Gün.