Not working
Closed this issue · 13 comments
I have followed the instructions but when I went to run the command in the Terminal is says:
"-bash: xml-to-json: command not found".
Any help would be appreciated because this tools would be awesome!
How did you build? Did you run cabal install?
On Mar 25, 2015 11:36 AM, "akapei" notifications@github.com wrote:
I have followed the instructions but when I went to run the command in the
Terminal is says:
"-bash: xml-to-json: command not found".Any help would be appreciated because this tools would be awesome!
—
Reply to this email directly or view it on GitHub
#6.
Also, make sure your PATH includes ~/.cabal/bin
On Mar 25, 2015 11:42 AM, "Noam Lewis" lenoam@gmail.com wrote:
How did you build? Did you run cabal install?
On Mar 25, 2015 11:36 AM, "akapei" notifications@github.com wrote:I have followed the instructions but when I went to run the command in
the Terminal is says:
"-bash: xml-to-json: command not found".Any help would be appreciated because this tools would be awesome!
—
Reply to this email directly or view it on GitHub
#6.
Yep ran cabal install.
Can you explain the second comment? What do you mean by PATH includes ~/.cabal/bin?
See the cabal install wiki page for more.
What I meant was, does your PATH environment variable include the location of cabal's output, which is normally in linux is under your home directory in .cabal/bin
?
No it doesn't appear to be there.
To make this easier - run
cabal clean
cabal install
Then paste the output somewhere where I can take a look.
On Mar 25, 2015 12:55 PM, "akapei" notifications@github.com wrote:
No it doesn't appear to be there.
—
Reply to this email directly or view it on GitHub
#6 (comment).
This is what I get when I ran cabal clean:
cabal: No cabal file found.
Please create a package description file .cabal
Sorry about that - run cabal install
alone and paste the output, please
Here is the output for cabal install:
Resolving dependencies...
In order, the following will be installed:
xml-to-json-1.0.1 (reinstall) changes: directory-1.2.1.0 added,
process-1.2.0.0 added
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring xml-to-json-1.0.1...
Building xml-to-json-1.0.1...
Installed xml-to-json-1.0.1
Updating documentation index /Users/Max/Library/Haskell/share/doc/index.html
What platform / OS are you using?
On Mar 26, 2015 1:43 AM, "akapei" notifications@github.com wrote:
Here is the output for cabal install:
Resolving dependencies...
In order, the following will be installed:
xml-to-json-1.0.1 (reinstall) changes: directory-1.2.1.0 added,
process-1.2.0.0 added
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring xml-to-json-1.0.1...
Building xml-to-json-1.0.1...
Installed xml-to-json-1.0.1
Updating documentation index
/Users/Max/Library/Haskell/share/doc/index.html—
Reply to this email directly or view it on GitHub
#6 (comment).
Mac OS X Yosemite
First, let's make sure xml-to-json is installed where I think it is.
Try running it like this:
/Users/Max/Library/Haskell/bin/xml-to-json
Or like this:
~/Library/Haskell/bin/xml-to-json
That should work (you can use --help
to see command line options).
Assuming it does work, this wiki page may help you. One thing it says is:
For user installs, since ~/bin is not on the PATH by default on Mac OS X and may not exist, binaries are symlink'd into:
~/Library/Haskell/bin
So try to add "/Users/Max/Library/Haskell/bin" to your PATH environment variable. Google "os x add path to environment variable" or try this stackoverflow answer.
Yep that did it. It's working! Thank you so much!!!!