From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 54569158086 for ; Thu, 28 Oct 2021 13:25:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 824D5E087C; Thu, 28 Oct 2021 13:25:08 +0000 (UTC) Received: from smarthost01c.sbp.mail.zen.net.uk (smarthost01c.sbp.mail.zen.net.uk [212.23.1.5]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C8BECE086E for ; Thu, 28 Oct 2021 13:25:07 +0000 (UTC) Received: from [82.69.80.10] (helo=wstn.localnet) by smarthost01c.sbp.mail.zen.net.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg5P0-0006Xb-67 for gentoo-user@lists.gentoo.org; Thu, 28 Oct 2021 13:25:06 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Anyone using www-apps/jekyll? Date: Thu, 28 Oct 2021 14:25:05 +0100 Message-ID: <3163589.aeNJFYEL58@wstn> In-Reply-To: <66b22cbb-ca4f-4728-8da7-4a0c6692192f@www.fastmail.com> References: <11877561.O9o76ZdvQC@wstn> <5761143.lOV4Wx5bFT@wstn> <66b22cbb-ca4f-4728-8da7-4a0c6692192f@www.fastmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-smarthost01c-IP: [82.69.80.10] Feedback-ID: 82.69.80.10 X-Archives-Salt: 3837528a-2f46-47e7-befe-d4e366c8f49c X-Archives-Hash: 1836e8712200c8be7272f6240c11241c On Thursday, 28 October 2021 13:34:49 BST Alec Ten Harmsel wrote: > I got jekyll installed via portage by adding: > > dev-ruby/* ~amd64 > www-apps/jekyll ~amd64 > www-apps/jekyll-* ~amd64 > > to package.accept_keywords, and then running `emerge www-apps/jekyll'. > This is on stable, with a tree that is a couple weeks old for what it's > worth. This system is ~amd64, so I didn't have to do that. > Then `jekyll new testsite && bundle exec jekyll serve' works for me. $ jekyll new myblog && bundle exec jekyll serve ... [A number of Bundler: Using... messages] ... New jekyll site installed in /home/prh/myblog. Could not locate Gemfile or .bundle/ directory # find / -xdev -iname gemfile /usr/lib64/ruby/gems/3.0.0/gems/jekyll-seo-tag-2.7.1/Gemfile /usr/lib64/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/templates/Gemfile /usr/lib64/ruby/gems/2.6.0/gems/bundler-2.2.29/lib/bundler/templates/Gemfile /usr/lib64/ruby/gems/2.6.0/gems/jekyll-4.2.0/lib/theme_template/Gemfile $ find . -xdev -iname gemfile ./.local/share/gem/ruby/3.0.0/gems/jekyll-4.2.1/lib/theme_template/Gemfile ./.local/share/gem/ruby/3.0.0/gems/mercenary-0.4.0/Gemfile ./.local/share/gem/ruby/3.0.0/gems/terminal-table-2.0.0/Gemfile ./.local/share/gem/ruby/3.0.0/gems/http_parser.rb-0.6.0/Gemfile ./.local/share/gem/ruby/3.0.0/gems/bundler-2.2.30/lib/bundler/templates/Gemfile ./.local/share/gem/ruby/3.0.0/gems/addressable-2.8.0/Gemfile ./.local/share/gem/ruby/3.0.0/gems/forwardable-extended-2.6.0/Gemfile ./.local/share/gem/ruby/3.0.0/gems/rb-inotify-0.10.1/Gemfile ./.local/share/gem/ruby/3.0.0/gems/em-websocket-0.5.2/Gemfile ./.local/share/gem/ruby/3.0.0/gems/sassc-2.4.0/Gemfile ./.local/share/gem/ruby/3.0.0/gems/concurrent-ruby-1.1.9/Gemfile ./.local/share/gem/ruby/3.0.0/gems/safe_yaml-1.0.5/Gemfile ./.local/share/gem/ruby/3.0.0/gems/rb-fsevent-0.11.0/Gemfile ./.local/share/gem/ruby/3.0.0/gems/bundler-2.2.29/lib/bundler/templates/Gemfile ./.local/share/gem/ruby/3.0.0/gems/ffi-1.15.4/Gemfile ./.local/share/gem/ruby/3.0.0/gems/colorator-1.1.0/Gemfile ./.local/share/gem/ruby/3.0.0/gems/rouge-3.26.1/Gemfile ./.local/share/gem/ruby/3.0.0/gems/public_suffix-4.0.6/Gemfile ./.local/share/gem/ruby/3.0.0/gems/pathutil-0.16.2/Gemfile ./myblog/Gemfile $ grep -v \# myblog/Gemfile | grep -v ^$ source "https://rubygems.org" gem "jekyll", "~> 4.2.0" gem "minima", "~> 2.5" group :jekyll_plugins do gem "jekyll-feed", "~> 0.12" end platforms :mingw, :x64_mingw, :mswin, :jruby do gem "tzinfo", "~> 1.2" gem "tzinfo-data" end gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin] (That last line relates to Windows and Jruby.) It still looks like a PATH problem, but what do I know? :( > You could also try using jekyll outside of portage: > > mkdir mysite && cd mysite > bundle init > bundle config set path 'vendor/bundle' > bundle add jekyll > bundle exec jekyll new --force . > rm Gemfile.lock > rm -rf ./vendor/bundle > bundle config set path 'vendor/bundle' > bundle install > bundle exec jekyll serve > > And then continue following other jekyll instructions as needed. You'll have > to use `bundle exec jekyll ...' to run jekyll - you won't be able to run > jekyll directly. Thanks Alec. I may have to try something like that, but I'd rather have it installed by portage if I can. Perhaps I'm just growing too old for this sort of thing... -- Regards, Peter.