acowley / GLUtil

Utility functions for working with OpenGL BufferObjects, GLSL shaders, and textures.
BSD 3-Clause "New" or "Revised" License
40 stars 16 forks source link

"The program cpphs is required but it could not be found." #12

Open windemut opened 10 years ago

windemut commented 10 years ago

I got the below error trying to install GLUtil on OS X Mavericks. I understand there was an earlier, similar issue where the poster said they "had to install cpphs", but no further details were given for a solution. "cabal install cpphs" does not work for me, it claims cpphs is already installed. I tried --reinstall, but it gave me a scary message about everything being broken, so I did not go down that path.

I'd like to get this working, but am at a loss about what to do next. Am I missing something?

======= cabal install GLUtil: Resolving dependencies... Configuring GLUtil-0.7.4...

/var/folders/4b/1rj__m2j61d42z8fz4yqmhdm0000gn/T/68198.c:1:12: warning: control reaches end of non-void function [-Wreturn-type] int foo() {} ^ 1 warning generated. cabal: The program cpphs is required but it could not be found. Failed to install GLUtil-0.7.4 cabal: Error: some packages failed to install: GLUtil-0.7.4 failed during the configure step. The exception was: ExitFailure 1

======= cabal install cpphs: Resolving dependencies... All the requested packages are already installed: cpphs-1.18.4 Use --reinstall if you want to reinstall anyway.

windemut commented 10 years ago

Looks like I have been missing something: Adding ~/Library/Haskell/bin to my PATH resolved this issue for me.