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

Error when trying to install on Debian 11 #20

Open
felipelalli opened this issue Jan 12, 2022 · 3 comments
Open

Error when trying to install on Debian 11 #20

felipelalli opened this issue Jan 12, 2022 · 3 comments

Comments

@felipelalli
Copy link

➜  tetris git:(master) stack install tetris

HttpExceptionRequest Request {
  host                 = "raw.githubusercontent.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("User-Agent","The Haskell Stack")]
  path                 = "/fpco/stackage-content/master/stack/stack-setup-2.yaml"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (StatusCodeException (Response {responseStatus = Status {statusCode = 503, statusMessage = "Service Unavailable"}, responseVersion = HTTP/1.1, responseHeaders = [("Connection","keep-alive"),("Cache-Control","no-cache"),("Content-Type","text/html; charset=utf-8"),("Strict-Transport-Security","max-age=31536000"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","deny"),("X-XSS-Protection","0"),("Content-Security-Policy","default-src 'none'; style-src 'unsafe-inline'"),("Fastly-Restarts","1"),("Accept-Ranges","bytes"),("Date","Wed, 12 Jan 2022 02:26:20 GMT"),("Via","1.1 varnish"),("X-Served-By","cache-cgh11131-CGH"),("X-Cache","MISS"),("X-Cache-Hits","0"),("X-Timer","S1641954373.926645,VS0,VE7275"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","82353a753b9eb3bd81cec5e9e77f2a174ff967a9"),("Expires","Wed, 12 Jan 2022 02:31:20 GMT"),("Vary","Authorization,Accept-Encoding"),("transfer-encoding","chunked")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}) "<!DOCTYPE html>\r\n<!--\r\n\r\nHello future GitHubber! I bet you're here to remove those nasty inline styles,\r\nDRY up these templates and make 'em nice and re-usable, right?\r\n\r\nPlease, don't. https://github.com/styleguide/templates/2.0\r\n\r\n-->\r\n<html>\r\n  <head>\r\n    <title>Unicorn! &middot; GitHub</title>\r\n    <style type=\"text/css\" media=\"screen\">\r\n      body {\r\n        background-color: #f1f1f1;\r\n        margin: 0;\r\n        font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\r\n      }\r\n\r\n      .container { margin: 50px auto 40px auto; width: 600px; text-align: center; }\r\n\r\n      a { color: #4183c4; text-decoration: none; }\r\n      a:hover { text-decoration: underline; }\r\n\r\n      h1 { letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px; text-shadow: 0 1px 0 #fff; }\r\n      p { color: rgba(0, 0, 0, 0.5); margin: 10px 0 10px; font-size: 18px; font-weight: 200; line-height: 1.6em;}\r\n\r\n      ul { list-style: none; margin: 25px 0; padding: 0; }\r\n      li { display: table-cell; font-weight: bold; width: 1%; }\r\n")
@samtay
Copy link
Owner

samtay commented Jan 21, 2022

I can't reproduce. Can you install anything else via stack? Also, try again. This 503 may have just been a blip in the stackage service.

@felipelalli
Copy link
Author

Maybe it was a proxy issue. Now, I got another error:

➜  ~ stack install tetris
StateVar  > using precompiled package
splitmix  > using precompiled package
random    > using precompiled package           
ObjectName> configure                         
ObjectName> Configuring ObjectName-1.1.0.2...
ObjectName> build                     
fixed     > configure                 
ObjectName> Preprocessing library for ObjectName-1.1.0.2..
ObjectName> Building library for ObjectName-1.1.0.2..
ObjectName> [1 of 1] Compiling Data.ObjectName
fixed     > Configuring fixed-0.3...  
fixed     > build                     
half      > configure                 
fixed     > Preprocessing library for fixed-0.3..
fixed     > Building library for fixed-0.3..
ObjectName> copy/register             
fixed     > [1 of 1] Compiling Numeric.Fixed
ObjectName> Installing library in /home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/lib/x86_64-linux-ghc-8.10.7/ObjectName-1.1.0.2-DuEbzYljkktH7U5m2bwpk2
ObjectName> Registering library for ObjectName-1.1.0.2..
half      > Configuring half-0.3.1... 
half      > build         
half      > Preprocessing library for half-0.3.1..
half      > Building library for half-0.3.1..
half      > [1 of 2] Compiling Numeric.Half.Internal
fixed     > copy/register 
fixed     > Installing library in /home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/lib/x86_64-linux-ghc-8.10.7/fixed-0.3-CPNOfr1AfWI6VikvQN1ryb
fixed     > Registering library for fixed-0.3..
half      > [2 of 2] Compiling Numeric.Half
half      > copy/register
half      > Installing library in /home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/lib/x86_64-linux-ghc-8.10.7/half-0.3.1-LXV3q5IozPLH8VnDttuR3B
half      > Registering library for half-0.3.1..
OpenGLRaw > configure   
OpenGLRaw > Configuring OpenGLRaw-3.3.4.1...
OpenGLRaw > Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.7: Missing dependency on a foreign
OpenGLRaw > library:    
OpenGLRaw > * Missing (or bad) C library: GL
OpenGLRaw > This problem can usually be solved by installing the system package that
OpenGLRaw > provides this library (you may need the "-dev" version). If the library is
OpenGLRaw > already installed but in a non-standard location then you can use the flags
OpenGLRaw > --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
OpenGLRaw > library file does exist, it may contain errors that are caught by the C
OpenGLRaw > compiler at the preprocessing stage. In this case you can re-run configure
OpenGLRaw > with the verbosity flag -v3 to see the error messages.
OpenGLRaw >             
Progress 7/11           

--  While building package OpenGLRaw-3.3.4.1 (scroll up to its section to see the error) using:
      /home/xxx/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.7 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0 configure --user --package-db=clear --package-db=global --package-db=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/pkgdb --libdir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/lib --bindir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/bin --datadir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/share --libexecdir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/libexec --sysconfdir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/etc --docdir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/doc/OpenGLRaw-3.3.4.1 --htmldir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/doc/OpenGLRaw-3.3.4.1 --haddockdir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/doc/OpenGLRaw-3.3.4.1 --dependency=base=base-4.14.3.0 --dependency=bytestring=bytestring-0.10.12.0 --dependency=containers=containers-0.6.5.1 --dependency=fixed=fixed-0.3-CPNOfr1AfWI6VikvQN1ryb --dependency=half=half-0.3.1-LXV3q5IozPLH8VnDttuR3B --dependency=text=text-1.2.4.1 --dependency=transformers=transformers-0.5.6.2 -f-osandroid -fusegles2 -fuseglxgetprocaddress -fusenativewindowslibraries --exact-configuration --ghc-option=-fhide-source-paths
    Process exited with code: ExitFailure 1

@samtay
Copy link
Owner

samtay commented Feb 23, 2022

I don't know exactly what your setup looks like on Debian, but it does appear that missing NVIDIA drivers/libs can cause this issue. Did you see and try the suggestions in haskell-opengl/OpenGLRaw#34? And haskell-opengl/OpenGLRaw#37

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