Bill Tj
Members-
Posts
32 -
Joined
-
Last visited
-
Days Won
1
Bill Tj last won the day on February 13 2013
Bill Tj had the most liked content!
Bill Tj's Achievements
Newbie (1/14)
1
Reputation
-
Hi, Thanks a lot for helping to solve the problem. I am so sorry that I just became aware from http://www.ruby-foru...pic/4306127#new that "Rails hosts, for instance Heroku, are strongly advising against therubyracer because of memory usage. I removed therubyracer from my gems and just did $sudo apt-get install nodejs." I don't know whether here we have memory usage problem or not. (Removing therubyracer is easy, just "gem uninstall therubyracer"; but I am not sure about installing node.js.) Regards, Bill
-
Building native extensions. This could take a while... Successfully installed libv8-3.3.10.4-x86_64-linux Successfully installed therubyracer-0.10.2 2 gems installed Installing ri documentation for libv8-3.3.10.4-x86_64-linux... Installing ri documentation for therubyracer-0.10.2... Installing RDoc documentation for libv8-3.3.10.4-x86_64-linux... Installing RDoc documentation for therubyracer-0.10.2... Done. Hi, Thanks a lot for installing therubyracer; I think it is working fine. I still have one more error: No such file or directory - git ls-files According to http://ficial.wordpr...y-git-ls-files/, the solution for PhusionPassenger is to put ln -nfs /usr/local/bin/git /usr/bin/git Is it possible to add this link? Thanks. Regards, Bill EDIT: root@johnny [~]# ls -l /usr/local/bin/git -rwxr-xr-x 1 root root 3746139 Mar 17 2011 /usr/local/bin/git* root@johnny [~]# ls -l /usr/bin/git /bin/ls: /usr/bin/git: No such file or directory root@johnny [~]# ln -ns /usr/local/bin/git /usr/bin/git root@johnny [~]# ls -l /usr/local/bin/git -rwxr-xr-x 1 root root 3746139 Mar 17 2011 /usr/local/bin/git* root@johnny [~]# ls -l /usr/bin/git lrwxrwxrwx 1 root root 18 Aug 21 08:56 /usr/bin/git -> /usr/local/bin/git*
-
Hi, Because cPanel does not support our version of Rails, can I make suggestion to remove the "Ruby on Rails" from the "Software/Services" area on cPanel? It may confuse the new people trying the Ruby on Rails. Thanks. Regards, Bill
-
Hi, I am asking the Ruby gem "therubyracer" to be installed. (It is to be used as a JavaScript runtime as indicated by PhusionPassenger.) When I tried to install therubyracer myself (via cron), I got the "libv8" is not found: ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- libv8 (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from extconf.rb:8 Regards, Bill EDIT: Building native extensions. This could take a while... Successfully installed libv8-3.3.10.4-x86_64-linux Successfully installed therubyracer-0.10.2 2 gems installed Installing ri documentation for libv8-3.3.10.4-x86_64-linux... Installing ri documentation for therubyracer-0.10.2... Installing RDoc documentation for libv8-3.3.10.4-x86_64-linux... Installing RDoc documentation for therubyracer-0.10.2... Done.
-
Hi, Thank you for your suggestion; it is very good to know about phpinfo(). Unfortunately, the Ruby version (as will be returned from "ruby -v") and none of the Ruby information is included in the output from phpinfo. Regards, Bill Hi, Thanks also for your suggestion. Right now, I cannot achieve it through the Ruby on Rails application, because there is something wrong with the rails app. I guess, I may go through a separate dedicated Ruby app (not with rails, maybe through CGI?). Just a direct question, does anybody know what version of the Ruby is on Johnny? Thanks. Regards, Bill
-
Hi, What is the best way to print system info? For example, I just want to get the result of "ruby -v". When I tried it using the PHP method, system() and exec() are disabled. (Sometimes, the info at the website is out of date; for example, the Rails version according to http://www.heliohost.org/home/features/languages/ruby is 3.0.3, but according to "Installed Ruby Gem(s)" in cPanel, it is 3.1.3. The website says that the Ruby is 1.8.7, but I cannot be sure.) (Also, in the worst case I can do the cron method, but hopefully there is a better way so that I don't have to wait another day just to print the system info.) Best regards, Bill
-
It worked beautifully! I was never aware of the power of PHP. Thank you, thank you. (With this I don't have to wait another day for cron-related jobs.) I have put this in the wiki after the cron method. Thanks. Best regards, Bill
-
No, I don't. But it means that I have to learn PHP and also how to run PHP script at heliohost, right? Regards, Bill
-
Hi, Thanks. Actually using cron, it worked! (For some reason, initially when I tried RubyGems in cPanel, the "Install a Ruby Gem" did not work. Also, now, even though I have installed the gem, the RubyGems in cPanel still does not show the newly installed gem. Therefore, probably the RubyGems in cPanel needs some maintenance.) Best regards, Bill
-
Hi, Thanks a lot. I have filled in the survey. And I also have seen the new instruction in the wiki. Thank you very much! Regards, Bill
-
Hi, In the heliohost website, it says that HelioHost allows every user to install their own Ruby Gems (Ruby code libraries) to use with Ruby on their accounts. How do we install a gem (for Ruby on Rails)? Do we just create and run a one-time cron job with the following command: "gem install my_gem >/dev/null 2>&1" ? Thanks. (Before I am sure, I do not want to just try the cron job because I may exceed the two cron jobs per user per day limit.) Regards, Bill
-
Hi, Thank a lot for your suggestions. It is working now! May I put a suggestion, to put this in the Wiki or FAQ so that other people can find this method to create symbolic link? Thanks. Best regards, Bill
-
Hi, Thanks for your reply. I have done it twice, but without any success. What kind of time zone does the cron process at the server use? (I am at the Eastern Time Zone.) Also, is there a minimum period of time before we can schedule a one-time cron job? (I tried to schedule it for several minutes before the event.) Regards, Bill
-
Hi, In the Wiki, there is an instruction to: "Create a symbolic link from [Home Directory]/app_name/public to [Home Directory]/public_html/app_name" But how do we create symbolic link in Heliohost through the cPanel? Regards, Bill
-
Yes, it is still working. I have filled the survey. Thank you for all your help and effort!