public inbox for cygwin-talk@cygwin.com
 help / color / mirror / Atom feed
* command not found when running from batch
@ 2012-12-31 15:48 zgintasz
  2012-12-31 16:33 ` marco atzeri
  0 siblings, 1 reply; 3+ messages in thread
From: zgintasz @ 2012-12-31 15:48 UTC (permalink / raw)
  To: cygwin-talk

Hi,

I'm trying to make building process easier. When I launch cygwin and run
build.sh script, everything is fine, but I want to launch this script from
batch file. I do this:

@echo off
F:/cygwin/bin/bash --login -c "cd F:/Projektai/osdev && sh build.sh"

When I launch it, I get errors *i586-elf-gcc: command not found* and
*i586-elf-ld: command not found*. I can't find the solution, how can I fix
it?

Thanks.



--
View this message in context: http://cygwin.1069669.n5.nabble.com/command-not-found-when-running-from-batch-tp95132.html
Sent from the cygwin OT chat mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: command not found when running from batch
  2012-12-31 15:48 command not found when running from batch zgintasz
@ 2012-12-31 16:33 ` marco atzeri
  2012-12-31 17:32   ` zgintasz
  0 siblings, 1 reply; 3+ messages in thread
From: marco atzeri @ 2012-12-31 16:33 UTC (permalink / raw)
  To: cygwin-talk, cygwin

On 12/31/2012 4:48 PM, zgintasz wrote:
> Hi,

first: you are on the wrong mailing list,
       use cygwin (at) cygwin (dot) com

>
> I'm trying to make building process easier. When I launch cygwin and run
> build.sh script, everything is fine, but I want to launch this script from
> batch file. I do this:
>
> @echo off
> F:/cygwin/bin/bash --login -c "cd F:/Projektai/osdev && sh build.sh"
>
> When I launch it, I get errors *i586-elf-gcc: command not found* and
> *i586-elf-ld: command not found*. I can't find the solution, how can I fix
> it?

To build what ?

i586-elf-gcc looks a cross compiler, so probably your path is wrong,
as it is not a standard cygwin compiler


>
> Thanks.
>
Marco

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: command not found when running from batch
  2012-12-31 16:33 ` marco atzeri
@ 2012-12-31 17:32   ` zgintasz
  0 siblings, 0 replies; 3+ messages in thread
From: zgintasz @ 2012-12-31 17:32 UTC (permalink / raw)
  To: cygwin-talk

First of all, thanks for reply. I'm compiling my own project with cygwin by
launching build.sh. If I open cygwin, then locate path and then run
build.sh, everything works totally fine:
1. open cygwin
2. cd F:/Projektai/osdev
3. ./build.sh
But I'm a bit lazy, so I want to make build process easier - by just
launching batch file.
How to make this path correct?
These files are in F:\cygwin\usr\local\cross\bin.



--
View this message in context: http://cygwin.1069669.n5.nabble.com/command-not-found-when-running-from-batch-tp95132p95135.html
Sent from the cygwin OT chat mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-31 17:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-31 15:48 command not found when running from batch zgintasz
2012-12-31 16:33 ` marco atzeri
2012-12-31 17:32   ` zgintasz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).