delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/30/15:50:17

X-Spam-Check-By: sourceware.org
Message-ID: <46364866.7030602@math.uakron.edu>
Date: Mon, 30 Apr 2007 15:49:58 -0400
From: Dmitry Golovaty <dmitry AT math DOT uakron DOT edu>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ImageMagick "display" and "convert" fail with a Visual C++ runtime error
References: <984298f00704192225n97bd4f0uc76ef0ce396c7cff AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0704251226070 DOT 7209 AT access1 DOT cims DOT nyu DOT edu> <Pine DOT LNX DOT 4 DOT 64 DOT 0704251256440 DOT 21337 AT riemann DOT math DOT uakron DOT edu> <Pine DOT GSO DOT 4 DOT 63 DOT 0704301134040 DOT 4176 AT access1 DOT cims DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.63.0704301134040.4176@access1.cims.nyu.edu>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Igor Peshansky wrote:
> On Wed, 25 Apr 2007, Dmitry Golovaty wrote:
>
>   
>> Thanks, Igor.
>>
>>     
>>> PATH is usually processed left-to-right.  As an alternative to what
>>> Brian suggested, simply prepending C:\cygwin\bin to the PATH should
>>> work.
>>>       
>> C:\cygwin\bin has been in the PATH all the time; the problem seems to
>> have been that the PATH statement contained a MATLAB directory somewhere
>> in the middle which caused some conflict between the libraries that
>> loaded.
>>     
>
> Notice, I said "prepend", which means "put in the front".  In your case,
> it was in the end of the path, and was overridden by the preceding MATLAB
> directory.
>   

I did notice that you said "prepend" ... the same error occurred 
independent of whether the statement was at the beginning or at the end 
of the PATH.


>   
>>> FWIW, the above is already done in the standard shell startup scripts,
>>> so unless you're using custom .*rc scripts, you probably attempted to
>>> invoke ImageMagick from a Windows command prompt.  One word of warning
>>> for working in that mode: some of the programs in /bin are symbolic
>>> links or scripts that Windows does not understand.  You're better off
>>> invoking Cygwin programs from a Cygwin shell, unless you're sure they
>>> are .exe files.
>>>       
>> I am using standard rc scripts and was invoking ImageMagick from xterm
>> ... I have added a path-modifying statement suggested by Brian to
>> .profile that removed the win32 Matlab directory from the PATH and this
>> solved the problem.
>>     
>
> This is weird.  The /etc/profile that comes with the base-files package
> prepends /usr/bin to the PATH already.  My only guess is that you started
> the xterm with bash as a non-login shell.  Try running "xterm -e bash -l"
> instead.
>   
Tried it - seems to make no difference ...

Thanks again,

Dmitry

> HTH,
> 	Igor
>   


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019