'Install Jekyll but says: couldn't locate gemfile or bundle/directory

I just installed Jekyll, but when I type bundle exec jekyll serve, it couldn't locate Gemfile or .bundle/ directory.

What should I do?



Solution 1:[1]

First Install prerequisites

sudo apt-get install ruby-full build-essential zlib1g-dev

after that install the gem

gem install jekyll bundler

That’s it! You’re ready to start using Jekyll.

Source: https://jekyllrb.com/docs/installation/ubuntu/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andres23Ramirez