so, you can run convert then, from anywhere, like this:

/usr/local/bin/convert

OR you can also modify your path environment. The only issue is that the path environment is not global, but by user. So if you modify your PATH env in a terminal session, it only works for that terminal session. So to make it work in ALL terminal session for a given user:

My user name is rgarcia. So, in the path /users/rgarcia , there should be a file called ".profile" The "." at the beginning makes it hidden, so use something like BBEdit, to open a hidden file and look for it. It is possible it is not there. That means no program has created it yet, so you need to make it.

If the file is there, add this text:

echo $PATH | grep -q -s "/usr/local/bin"
if [ $? -eq 1 ] ; then
    PATH=$PATH:/usr/local/bin
    export PATH
fi

If it is not, create the file with this text. This little snippet, will check if /usr/local/bin is already in your path, and only add if it is not.

Now, if you want convert to be available to witango, then add this snippet to the witango startup item, where it is setting up the environment for ODBC and stuff.

NOTE: It is completely acceptable to NOT modify your path for witango or your user environment, you only have to use "/usr/local/bin/ convert" to call the utility, instead of just "convert". I would recommend you do the .profile update above but DO NOT modify your global path, or the witango startup item unless you feel real comfortable. If you are using witango_cmd or the external action, just use /usr/local/bin/convert.


--

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/

On Jul 17, 2005, at 11:53 PM, Wayne Irvine wrote:

Robert Garcia at [EMAIL PROTECTED] wrote:


For example, it may install imagemagick in /usr/local/imagemagick or /
usr/local/IM.


There is neither an IM or imagemagick folder in /usr/local/ but I happened to look in /usr/local/bin/ and 'convert and the other Imagemagick files are
there along with Clamav files. Not sure why.


OR they may have installed within usr local with everything else, so
that the IM binaries are in /usr/local/bin and the IM libs are within.


Yes, that is it.


So search for the CONVERT executable, and call it with the full path,
like:

/usr/local/IM/bin/convert


I did a ./convert from the folder and it displayed the help screen showing
how to format commands (like the man file I assume).


from the terminal, and see if THAT works. It will do one of two
things, either WORK, or give an error about not finding the linked
libraries it needs. This is a whole other issue, and requires you
setting the DYLD_LIBRARY_PATH in your environment to where the IM
libs are.


Am I correct in assuming it is working at the path /usr/local/bin?

I assume the next step is to edit the path variable? Can youprovide a clue
as to where I find that in OS X (And your help is appreciated BTW)?

Wayne Irvine

                  Byte Services Pty Ltd
               http://www.byteserve.com.au/
                  [EMAIL PROTECTED]
   Ph 02 9960 6099   Mob 0409 960 609   Fax 02 9960 6088

______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf



________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to