| View previous topic :: View next topic |
| Author |
Message |
atmosx n00b

Joined: 17 Jul 2009 Posts: 37 Location: Brno
|
Posted: Sat Jan 14, 2012 11:28 pm Post subject: Problem with RVM and fcron |
|
|
Hello,
I'm using Gentoo since ages but I have the bad luck to use gentoo and program in ruby. It's not a good comination. Anyway, I need to install a ruby-1.9.3 script on my gentoo server in order to run it. Problem is that there's no way to get 1.9.3 *easily* and when I'm using the online howtos about it, I get stuck trying to compile "rake". Compilation fails. I didn't find any way to get over that error - mind you my server is an rdc-chipset based device which means compiling packages takes time - so, I just installed RVM which is pretty handy in situations like this.
Then I stuck with crontab. My script needs to run once per week w/ the users permission. Crontab permissions were all messed up. Again the online howtos didn't help much. After loosing like 3 hours and not achievement proper permission setup - crontab had even the same group id with ssmtp, a total mess - I intalled fcron which looked much more flexible than vixie-cron anyway.
Now the problem is that I need fcron to play with RVM in order to load ruby-1.9.3 and gems. I did not find any way to do it yet. I've tried created a wrapper which sources rvm's version but didn't work. I tried to use PATH,SHELL,GEM_HOME variables directly through fcrontab but didn't work either.
Is there anyone who managed to do this: RVM + fcron??
best regards _________________ Never argue with an idiot. |
|
| Back to top |
|
 |
a3li Developer


Joined: 02 Sep 2008 Posts: 93 Location: Schlaaand!
|
Posted: Sat Jan 14, 2012 11:36 pm Post subject: Re: Problem with RVM and fcron |
|
|
| atmosx wrote: | Hello,
I'm using Gentoo since ages but I have the bad luck to use gentoo and program in ruby. It's not a good comination. Anyway, I need to install a ruby-1.9.3 script on my gentoo server in order to run it. Problem is that there's no way to get 1.9.3 *easily* and when I'm using the online howtos about it, I get stuck trying to compile "rake". Compilation fails. I didn't find any way to get over that error - mind you my server is an rdc-chipset based device which means compiling packages takes time - so, I just installed RVM which is pretty handy in situations like this. |
How about you post your problem with rake? Otherwise this thread likely belongs into the 'unspported software' board. _________________ I am Confuism. Do not bother me. |
|
| Back to top |
|
 |
atmosx n00b

Joined: 17 Jul 2009 Posts: 37 Location: Brno
|
Posted: Sun Jan 15, 2012 1:45 pm Post subject: Re: Problem with RVM and fcron |
|
|
| a3li wrote: | | atmosx wrote: | Hello,
I'm using Gentoo since ages but I have the bad luck to use gentoo and program in ruby. It's not a good comination. Anyway, I need to install a ruby-1.9.3 script on my gentoo server in order to run it. Problem is that there's no way to get 1.9.3 *easily* and when I'm using the online howtos about it, I get stuck trying to compile "rake". Compilation fails. I didn't find any way to get over that error - mind you my server is an rdc-chipset based device which means compiling packages takes time - so, I just installed RVM which is pretty handy in situations like this. |
How about you post your problem with rake? Otherwise this thread likely belongs into the 'unspported software' board. |
Thanks for the reply. I did what I wanted by using the following syntax on fcrontab:
| Code: | atma@comodino ~ $ fcrontab -l
14:45:01 listing atma's fcrontab
# atmat's crontab configuration
SHELL=/bin/bash
PATH=/home/atma/.rvm/gems/ruby-1.9.3-p0/bin:/home/atma/.rvm/gems/ruby-1.9.3-p0@global/bin:/home/atma/.rvm/rubies/ruby-1.9.3-p0/bin:/home/atma/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.5.3
RUBYLIB=/home/atma/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1
GEM_HOME='/home/atma/.rvm/gems/ruby-1.9.3-p0'
GEM_PATH='/home/atma/.rvm/gems/ruby-1.9.3-p0:/home/atma/.rvm/gems/ruby-1.9.3-p0@global'
RUBYOPT=rubygems
[...] |
You can move the thread if you believe it's the wrong place. Sorry for the incovenience.
Best Regards,
atma _________________ Never argue with an idiot. |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6448 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Jan 17, 2012 3:22 pm Post subject: |
|
|
Moved from Portage & Programming to Unsupported Software. The OP has moved on but never did explain his problem.
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
|