Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"cp" is not recognized as an internal or external command #20

Closed
creWn opened this issue Apr 14, 2015 · 13 comments
Closed

"cp" is not recognized as an internal or external command #20

creWn opened this issue Apr 14, 2015 · 13 comments
Labels
Developer Experience Engine's programmer experience Modmaker Experience Modmaker experience with OpenXRay

Comments

@creWn
Copy link

creWn commented Apr 14, 2015

When i use xrbinup.cmd, i get an error "cp" is not recognized as an internal or external command. What should I do?

@nitrocaster
Copy link
Member

xrbinup script assumes that you have common Linux utilities installed and added to PATH (msysgit does that during the installation process). If, for some reason, you don't have these utilities, you can simply replace cp to copy /Y.

@creWn
Copy link
Author

creWn commented Apr 14, 2015

On windows xrbinup not needed?

@nitrocaster
Copy link
Member

Windows is the only supported OS. You need xrbinup to update game binaries with the ones you've just compiled.

@creWn
Copy link
Author

creWn commented Apr 14, 2015

image
What i doing wrong?

@nitrocaster
Copy link
Member

The script is intended to be executed from windows command prompt, not from bash (that's why it has .cmd extension).

@creWn
Copy link
Author

creWn commented Apr 14, 2015

image
"cp" is not recognized as an internal or external command.
I cant figure out which utils i should install.

@awdavies
Copy link
Contributor

Hi there creWn. I recommend GnuWin32. Installation should be pretty straightforward and I believe it includes standard unix utilities.

And if you don't already know how, this here explains how to edit the PATH variable (where the binaries are located). Instead of pointing it to Java stuff, just point it to where the exe files are installed for GnuWin32 :)

@nitrocaster
Copy link
Member

My first comment is exactly about that.

@awdavies
Copy link
Contributor

True. I think creWn was just looking for a link, though ;)

@nitrocaster
Copy link
Member

Another solution would be to reinstall msysgit and choose 'Run Git and included Unix tools from the Windows Command Prompt':
image

@nitrocaster
Copy link
Member

At least master branch must be and actually is compilable and runnable.

@creWn
Copy link
Author

creWn commented Apr 15, 2015

If anyone has have trouble with compilation like:
"setx XRAY_16X_LIBS g:\dev\ /m" in cmd create incorrect variable, so i create variable manually through "Environment variable" window in system variables field and now everything ok!

@awdavies
Copy link
Contributor

Great!

However please note:

  • This is already how compilation works.
  • Discussion of compilation problems is not pertinent to the issue at hand.

Given it appears compilation works and more than sufficient information has been given on how to fix ' "cp" being an unrecognized command ' I will mark this as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Developer Experience Engine's programmer experience Modmaker Experience Modmaker experience with OpenXRay
Projects
None yet
Development

No branches or pull requests

4 participants