-
Notifications
You must be signed in to change notification settings - Fork 703
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
Problem in compiling on Ubuntu 11.10 #7
Comments
A couple of questions: What version of sbt are you running? |
Note, sbt will download the correct version of scala. It does not need to match your system. It will keep it inside the project, and if you don't change the version number of scala, it should work. That said, 2.9.0.1 might have some issue. I have only tested successfully with 2.8.1 and 2.9.1. Can you try with one of those? Running with 2.9.1: sbt clean works fine for me. Also with 2.8.1 (2.8.2 doesn't work for me currently, but version fragility is not an uncommon issue with scala, the best I can offer immediately is try to use a version known to work). I'll wrestle with 2.8.2 and try to make it compile also. These are not real bugs, but type issues due to weakly typed (but type parameterized half the time) Cascading. PS: I am sorry about the deprecation warnings, but hadoop deprecated then undeprecated some files, so the version of cascading uses the code that was, for a a short time, deprecated. It's not pretty, but not much we can easily do from our position. |
Hi! I'm not sure if I'm doing the "running with 2.9.1" correctly, so here are the steps that I did:
BTW, the sbt version is quite likely 0.11.2 (as that is part of the URL for the latest version) |
Are you running on linux with an encrypted home? https://groups.google.com/forum/?fromgroups#!topic/simple-build-tool/wtD6vgdiy6g This seems like an issue others have had. "For anyone following this thread, another solution is: ln -s /tmp project/plugins/target Not the most ideal, but it seems to be working." |
Laptop, so of course I'm running encrypted home. Company laptop, so I would not even have a choice :-( |
Just to document: you shouldn't need to change the sbt file to build. sbt will download the scala compiler jar you need to compile. So, please just try to run the tests with the existing sbt build file. If that does not work, please report back. After that we can address the issue of using scald.rb, which does use a scala compiler and needs to match the version used to compile scalding. |
I'm closing this issue since it seems to be a problem with Ubuntu encrypted home + sbt. |
To save some people's time, I wanted to add a comment about my experience with this issue. With the solution to this problem listed above i.e. using ln -s /tmp project/plugins/target I received the following error when running sbt update: When I used Sullivan's solution (from the same thread) it worked without issue: Hope this helps |
Firstly, I'm not familiar with ruby, sbt or scalding and only starting scala... so I might be doing something obviously wrong. So, here is what I just tried to do. This is Ubuntu 11.10 - and system fully up to date with apt-get. So, check the scala version:
Then get SBT
Then get scalding:
Next change the scala version & compiler
However running sbt update with this version fails:
So, try with 2.9.0
sbt update works:
Then sbt test - which fails like this:
It would be really helpful to have good documentation on the installation parameters. What to change for different versions of scala or hadoop (I didn't even get that far, but I know it will come) as well as host name settings and whatever you have there.
The text was updated successfully, but these errors were encountered: