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

'pkg-config' is not recognized as an internal or external command #35

Closed
ghost opened this issue Dec 16, 2016 · 7 comments
Closed

'pkg-config' is not recognized as an internal or external command #35

ghost opened this issue Dec 16, 2016 · 7 comments

Comments

@ghost
Copy link

ghost commented Dec 16, 2016

When trying to clone this repository on System running Windows 10 64-bit, the following error is thrown...

'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
@crewjam
Copy link
Owner

crewjam commented Dec 17, 2016

we have a dependency of github.com/crewjam/go-xmlsec which in turn has a dependency on libxmlsec and libxml2. I'm not 100% sure the best way to make that happen on windows, but I'm not surprised it doesn't work out of the box.

@ghost
Copy link
Author

ghost commented Dec 19, 2016

@crewjam It may be worth mentioning then this package is targeted for unix systems only? Is that accurate?

@crewjam
Copy link
Owner

crewjam commented Dec 20, 2016

Targeted at unix? I suppose so. I've never tried on Windows.

I don't really know much about how cgo packages ought to work on Windows. It is almost certainly possible to build, but it probably takes some twiddling. If you, or anyone, is motivated to give it a try, I'd be most grateful.

@dhoelle
Copy link
Contributor

dhoelle commented Dec 21, 2016

Could this library be helpful? https://github.com/ma314smith/signedxml

@ghost
Copy link
Author

ghost commented Dec 21, 2016

@crewjam I'll give it a shot and link a readme of how I did it or something ;)

@ghost
Copy link
Author

ghost commented Dec 21, 2016

@crewjam I did the following to get this to properly work-at least on Windows 10 64-bit (markdown doesn't recognize FTP links so I had to put then as text)

  1. Go to the offical xmlsec site (ftp://ftp.zlatkovic.com/libxml/)
  2. depending on your distribution
    • 32-bit (ftp://ftp.zlatkovic.com/libxml/libxmlsec-1.2.18.win32.zip)
    • 64-bit (ftp://ftp.zlatkovic.com/libxml/64bit/xmlsec1-1.2.20-win32-x86_64.7z)
  3. Extract files
    • 32-bit C;\Program Files (x86)\xmlsec1
    • 64-bit C:\Program Files\xmlsec1
  4. Add the extracted xmlsec1\bin folder to %PATH% instructions
  5. open a cmd prompt and type xmlsec1
  6. if you receive no error message then it's working

@crewjam
Copy link
Owner

crewjam commented Dec 21, 2016

I'm intrigued by @dhoelle 's suggestion. I'm pretty sure this library didn't exist (or if it did, I couldn't find it) when I wrote go-xmlsec. I think a native go implementation of the signature verification required is vastly superior to what we are doing now. I've created issue #37 to track that.

Our dependency on the native libraries is a pain to support, as this issue illustrates.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants