Hi, Dave,
your solution is perfectly useful! I have done it as you said just now,and
it works now,thank you very much!
peter
At 2014-08-29 00:28:48, "David MacMahon" <[email protected]> wrote:
>Hi, Peter,
>
>Yes, sorry, the instructions for building/installing the Ruby components were
>missing. I have updated the PAPER Correlator Manifest page with these details:
>
>https://casper.berkeley.edu/wiki/PAPER_Correlator_Manifest
>
>The Ruby source code that you get when cloning the git repos must first be
>packaged into a *.gem file and then installed using the "gem" command before
>it will be generally usable.
>
>To build the *.gem file, run "rake gem" in the directory with the Rakefile.
>This will create `pkg/foo.X.Y.Z.gem`, where `foo` is the gem name and X.Y.Z is
>the gem version. This gem file contains everything needed for the "gem"
>command to install it into the system-wide (or user-specific, but let's not go
>there now) rubygems directory tree. FWIW, "rake" is a play on "Ruby make". :-)
>
>The resulting gem file can be installed using "sudo gem install
>pkg/foo.X.Y.Z.gem". Once the gem is installed, its executables (i.e. scripts
>from the "bin" subdirectory such as paper_feng_init.rb) and libraries
>(non-executable ruby code from the "lib" subdirectory) are available for
>general use. Make sure you put the rubygems executable directory into your
>PATH if it isn't already there. You can find the rubygems executable
>directory by running "gem env | grep 'EXECUTABLE DIRECTORY'".
>
>Hope this helps,
>Dave
>
>On Aug 28, 2014, at 7:02 AM, peter wrote:
>
>> hi all,
>> This is peter from NAOC,these days I come into trouble with the ruby
>> code.I have build a model for Tianlai project based on the PAPER's roach
>> model.Followed from[
>> https://casper.berkeley.edu/wiki/PAPER_Correlator_Manifest ],I have
>> installed ruby and rubygems(V. 2.1.2) ,and download the KATCP using the gem
>> command.The KATCP is right installed that can operate with roach2,while I
>> don't know how to install the rb-papergpu and the adc-16.I have download the
>> 2 files on my PC,however, when I rake the rakefile and ruby the .rb
>> files,It may not work. what should I do to operate it?Is there some useful
>> documentation to teach me whtat to do?This question confused me a few
>> days,wati for your reply! thanks!
>> peter
>>
>> ps: when I do the ruby papergpu.rb,(I find from the paper' /lib/)
>> it appears the load error
>> ..../rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such
>> file -- papergpu/fengine.rb (LoadError)
>> from
>> /usr/local/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
>> `require'
>> from papergpu.rb:1:in `<main>'
>> when I rake the Rakefile:
>> [peter@roachserver papergpu-0.0.11]$ rake Rakefile
>> [peter@roachserver papergpu-0.0.11]$
>> It seems nothing to happen......
>>
>>
>>
>