-
Notifications
You must be signed in to change notification settings - Fork 82
how to compile #7
Comments
I'm not sure I follow. There is no compilation process, since Ruby is an interpreted language. The directions in the Readme are going to be what you need to run in order to get off the ground. I could summarize here, but it would just end up reading like the Readme does. If you're having trouble with some specific step of the readme, I'd be glad to help. Also remember that if you only have interest in using ODK Build, not in developing on it, you can do so simply by visiting http://build.opendatakit.org . No compilation necessary. |
thanks, I'm interested also in developing, I will try with the readme. |
I have been fighting with the eventmachine and I have this error, I have also the devkit, maybe my problem is that I have windows. Greetings. |
when I do bundle install I have problems with the tokyo tyrant lib and also with json Here the error with json when I try with exec: |
I'm not sure exactly what's wrong here, since I am on *nix machines only, but if you're stil having problems building the eventmachine native extensions my suggestion for Windows would be to install cygwin, put gcc in it, and use that instead. Ruby is somewhat notoriously incompatible with Windows, despite their recent efforts. If the issue at this point is only the last one you point out, try updating rubygems: gem update --system |
thanks for answer, I think I will try with ubuntu, I'm installing it at this moment, because windows is a headache for this. |
same error in ubuntu: Could not find json-1.6.1 in any of the sources |
With the same date format error before it? Did you try updating rubygems? |
yes, with the same date format error, I tried to update but it said "ERROR: gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package" |
the message of json fixed with: sudo sed -i 's/ 00:00:00.000000000Z//' /var/lib/gems/1.8/specifications/* Now I have this error: How can I install the tokyo lib? I did with the install.rb, but it didnt work. jluis859@ubuntu:~/www/tokyotyrant-ruby-1.13$ sudo ruby install.rb |
I used this to update in ubuntu: $ REALLY_GEM_UPDATE_SYSTEM=1 gem update --system And now I have this message when I use bundle exec rackup config.ru: |
https://launchpad.net/ubuntu/maverick/+package/libtokyotyrant-dev |
Glad to see you got this far. Please do let me know if you run into any further issues. |
I did this in a diferent way, I start the service with ttserver -port 45001 data.tch and after that bundle exec shotgun config.ru. |
I'm... not convinced that will work. You will at minimum have to configure 3 tyrant instances: one for users, one for forms, and one for formdata. I strongly suspect that if you actually try to save a form with that setup it'll fail. |
thanks I will review it, now how can I connect my ODK Build with a local Aggregate, I have the aggregate working also. |
If you give it the URL of the local aggregate (probably localhost:port) it might work. To test this simply modify https://github.com/clint-tseng/odkbuild/blob/master/odkbuild_server.rb#L217 to point at your local machine instead of taking the input param. I say might because possibly Google auth will complain when you try to do this. |
thanks clint-tseng, now I use the rake db:dev start and it is better, here the log: http://pastebin.com/9GzxSESX NameError at / I commented this lines in connection_manager.rb and it works without tokyo tyrant, but I need the DB and I don know why this error happen I have tokyotyrant 1.1.41 and I had to change in the require Tokyo_Tyrant for TokyoTyrant in 2 parts of code. |
Maybe I have a Ruby tokyo tyrant too high version, but I cant find the 0.5.1, in centos I have a problem with the libtokyotyrant and bundle install that is why I am using 1.x |
fixed with a miracle of bundle install --path .rubygems I dont know how it works =) |
That's a curious one. Try doing a bundle install --deployment and see if it still works. For what it's worth, as long as you pay attention to the default settings, I've never bought the argument that centos is inherently more secure than, say, debian or even ubuntu. |
another trouble to add: |
I have my build in: http://127.0.0.1:8084/ I tried what you said, but it didnt work. Firefox can't find the file at http://127.0.0.1:8084/aggregate/post in my linux I put the http://127.0.0.1:8080/ODKAggregate/ in aggregate_instance_name, in data-ui.js I did this: And I put also in odkbuild_server.rb Any advice? |
Yeah, I've had various software stacks over the years that work better with thin. I'll add that to the README as a suggestion. I suspect you've actually run into a real bug I may have introduced recently. I'm shocked nobody has complained about it on the mailing list if this is true. Give me a minute here. |
Pull and try it again? |
after pull I have this: aggregate_instance_name |
The Aggregate bridge is currently broken and will be replaced with a simpler method soon. I'm gonna close this as that was the final outstanding issue. |
Hi, Do you use netbeans or eclipse for this?
I'm only a starter and I'm trying to compile this in netbeans, with rails.
Is there a tutorial in some part?
Greetings.
The text was updated successfully, but these errors were encountered: