書き込み失礼致します、
Macにてインストールしているのですが、『ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.』と出てしまって出来ません。
他のサイトなども見ながらやっているのですが、出来ませんでした…。どなたかわかる方教えてください
書き込み失礼致します、
Macにてインストールしているのですが、『ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.』と出てしまって出来ません。
他のサイトなども見ながらやっているのですが、出来ませんでした…。どなたかわかる方教えてください
/Users/yui023/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/narou-3.7.0/lib/command/init.rb:118:in `read': No such file or directory @ rb_sysopen - /Users/yui023/AozoraEpub3-なろう用/chuki_tag.txt (Errno::ENOENT)
from /Users/yui023/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/narou-3.7.0/lib/command/init.rb:118:in `rewrite_aozoraepub3_files'
from /Users/yui023/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/narou-3.7.0/lib/command/init.rb:106:in `init_aozoraepub3'
WEB UIの表示
[ERROR] C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/device.rb:153:in `copy_to_documents': ディレクトリまたはファイルを作成できません。 (Device::SendFailure)
コマンドプロンプトの表示
[2021-10-09 23:39:24] FATAL SystemExit: exit
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/device.rb:174:in `exit'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/device.rb:174:in `rescue in copy_to_documents'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/device.rb:143:in `copy_to_documents'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/command/send.rb:150:in `block (3 levels) in execute'
[2021-10-09 23:39:24] INFO going to shutdown ...
[2021-10-09 23:39:24] INFO WEBrick::HTTPServer#start done.
== Sinatra has ended his set (crowd applauds)
>>333
rubyをインストールするときに全てチェックのところは記載された通りにしました。
ただそもそもgem install narouがerrorが出ていました。
C:\Users\kkk_e>gem install narou
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing narou:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.3/ext/psych
C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r ./siteconf20220223-10488-u9htw5.rb extconf.rb
checking for yaml.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby27-x64/bin/$(RUBY_BASE_NAME)
--with-libyaml-dir
--without-libyaml-dir
--with-libyaml-include
--without-libyaml-include=${libyaml-dir}/include
--with-libyaml-lib
--without-libyaml-lib=${libyaml-dir}/lib
--enable-bundled-libyaml
--disable-bundled-libyaml
C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:471:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:613:in `try_cpp'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:1177:in `block in find_header'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:971:in `block in checking_for'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:361:in `block (2 levels) in postpone'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:331:in `open'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:361:in `block in postpone'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:331:in `open'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:357:in `postpone'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:970:in `checking_for'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:1176:in `find_header'
from extconf.rb:10:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
Gem files will remain installed in C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.3 for inspection.
Results logged to C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/psych-4.0.3/gem_make.out
rubyのバージョンを3.1.1にしてもう一回インストールしなおしてinitしようとするとこうなりました
narou init
/Users/username/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/narou-3.8.1/lib/inventory.rb:45:in `merge!': no implicit conversion of false into Hash (TypeError)
from /Users/username/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/narou-3.8.1/lib/inventory.rb:45:in `init'
from /Users/username/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/narou-3.8.1/lib/inventory.rb:23:in `block in load'
from <internal:kernel>:90:in `tap'
from /Users/username/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/narou-3.8.1/lib/inventory.rb:21:in `load'
from /Users/username/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/narou-3.8.1/narou.rb:38:in `<top (required)>'
from /Users/username/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/narou-3.8.1/bin/narou:13:in `require_relative'
from /Users/username/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/narou-3.8.1/bin/narou:13:in `<top (required)>'
from /Users/username/.rbenv/versions/3.1.1/bin/narou:25:in `load'
from /Users/username/.rbenv/versions/3.1.1/bin/narou:25:in `<main>'
パソコン割と初心者なんでわけわかめですたすけてください
************************************************************
Successfully installed narou-3.8.1
Parsing documentation for narou-3.8.1
Installing ri documentation for narou-3.8.1
Done installing documentation for narou after 1 seconds
1 gem installed
RubyGems installed the following executables:
C:/Ruby31-x64/bin/gem
C:/Ruby31-x64/bin/bundle
C:/Ruby31-x64/bin/bundler
Ruby Interactive (ri) documentation was installed. ri is kind of like man
pages for Ruby libraries. You may access it like this:
ri Classname
ri Classname.class_method
ri Classname#instance_method
If you do not wish to install this documentation in the future, use the
--no-document flag, or set it as the default in your ~/.gemrc file. See
'gem help env' for details.
先程の補足です
WEB UIでKindle変換してもだめだったのでepub変換を指定してみました
DL済のものは送信がmobi語尾になってしまいメール受信不可(アマゾンから通知メール)
新規DLしたものはepub変換出来たのですが、メール送信する段階で「まだファイル(題名)mobiがないようです」となりメール送信自体が出来ませんでした