Re: MSYS path priority question
On 2011-8-2 18:50, Greg Chicares wrote:
> On 2011-08-02 08:25Z, Asm warrior wrote:
>> On 2011-8-2 16:05, Asm warrior wrote:
> [...]
>>> The problem is: some MinGw suite have make.exe or grep.exe which is
>>> actually MinGW-make or MinGW-grep, they are Not the same ones as
>>> MSYS/bin folder.
>
> Then rename those binaries, or move them aside.
>
> Which MinGW version includes these binaries? I saw a stray 'make.exe'
> packaged with gcc-2.95.3-5, but that was ten years ago and I haven't
> noticed this problem since.
Firstly,thanks for the reply.
I use PCX's MinGW Suite 4.6.1, from:
http://code.google.com/p/pcxprj/downloads/list
It does Not contain a "make.exe", but for some reasons, he have supplied
an "grep.exe" under MinGw/bin folder.
I can remember a stray "make.exe" from another unofficial MinGW 4.X
suite, and this stray "make.exe" cause many problems when I use MSYS to
build gdb or clang. I don't realize the reason until several hours later.
Most MinGW suite use a "mingw32-make.exe" instead a "make.exe".
>
> [/etc/profile]
>> # My decision to add a . to the PATH and as the first item in the path list
>> # is to mimick the Win32 method of finding executables.
>> #
>> # I filter the PATH value setting in order to get ready for self hosting the
>> # MSYS runtime and wanting different paths searched first for files.
>> if [ $MSYSTEM == MINGW32 ]; then
>> export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
>> else
>> export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH"
>> fi
>>
>> My question is: If it is a mingw32 system, why do we put the /ming/bin
>> before /bin ???
>
> You might have an MSYS-native compiler in /bin and a windows-native
> MinGW compiler in /mingw ; those two paths would switch between them.
I do not have a MSYS-native compiler, As I said before, When I use MSYS
to build something, I actually need a MSYS-make, and also the
native-mingw compiler.
So, simply use the command:
export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH"
should at least solve my problem.
asmwarrior
ollydbg from codeblocks' forum
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
MinGW-users mailing list
MinGW-users@...
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe