1

I install ffaker but cannot find it in my PATH

masi@masi:~$ sudo gem install ffaker Fetching: ffaker-2.6.0.gem (100%) Successfully installed ffaker-2.6.0 Parsing documentation for ffaker-2.6.0 Installing ri documentation for ffaker-2.6.0 Done installing documentation for ffaker after 4 seconds 1 gem installed masi@masi:~$ ff ffmpeg ffplay ffprobe ffserver masi@masi:~$ require 'ffaker' bash: require: command not found masi@masi:~$ sudo ffaker sudo: ffaker: command not found 

OS: Debian 9

1 Answer 1

1

Start the Interactive Ruby Shell , then run the command:

irb irb(main):001:0> require 'ffaker' => true exit 

There is an example from the git repository :

irb irb(main):001:0> require 'ffaker' => true irb(main):002:0> FFaker::Name.name => "Danyelle Langosh" irb(main):003:0> FFaker::Internet.email => "[email protected]" irb(main):004:0> 
3
  • Do you know any minimal examples about how to generate fake data with the package? I want to test that it really works. Commented Jul 29, 2017 at 11:11
  • 1
    there is an example here , run cpan Data::Faker , create your sample.pl with the content of the synopsis then run perl sample.pl Commented Jul 29, 2017 at 12:13
  • What is the typical configuration for cpan installation? Options (Choose 'local::lib', 'sudo' or 'manual'). Sudo ok? Commented Aug 1, 2017 at 14:08

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.