-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot load such file -- kindlegen
on Linux
#268
Comments
Okay, there are two issues here:
|
Does it work if you manually install |
…we fail to find Kindlegen
…we fail to find Kindlegen
Too early to close this yet. |
Do I need the gem? I have the |
No, you shouldn't. The gem just installs the binary. In the upcoming release, the converter will detect it on your PATH if you don't set the KINDLEGEN env var (and the gem is not installed and we decide to make it optional). The alternative is to set the KINDLEGEN env var to the location of the binary. |
As I said, alpha-11 is unfortunately kinda broken WRT kindlegen path/env variable. I currently recommend either sticking to alpha-10 or installing
I broke that in alpha-11 :( Already repaired it back on |
haha 😆 shit happens to us all, don't be to hard on yourself. Moreover, it's alpha after all... Just let me know when you think is ready to test, I can install the gem from master to test snapshots if necessary 👍 PS: applogies for the account crossing. Alwasy forget to switch accouts when I am with the work machine. |
Okay, #276 was merged, I believe this bug can now be closed. @abelsromero it would be great if you could test that |
Will do! thx. If not today, tomorrow afternoon I can come with news |
@abelsromero okay, waiting for feedback from you. If everything's OK, I'll roll out alpha-12. |
Only issue was that on Windows nokogiri does not support Ruby 2.7 and had to install 2.6. |
@abelsromero Thanks for your feedback!
Yeah, we're waiting for sparklemotion/nokogiri#1961. |
Does this mean this fix is blocked untill next nokogiri version is released? |
@abelsromero until that Nokogiri issue is fixed, we do not have Ruby-2.7 support on Windows. It doesn't block anything else. To be more exact, the sequence is:
|
Nokogiri release candidate v1.11.0.rc1 has been released with precompiled native libraries for Windows and Ruby 2.7. Please give it a whirl and let me know if you have any problems. |
Following on asciidoctor/asciidoctor-maven-examples#77.
The issue still appears with alpha.11 building with maven and the gem, even on Linux.
For the gem build I am running
asciidoctor -b epub3 -r asciidoctor-epub3 -a ebook-format=kf8 spine.adoc
.As another sad note, the workarround to call the maven build setting the envar
KINDLEGEN=$(which kindlegen)
, does not work with alpha.11, it did with alpha.10.Ruby environemnt
Already installe Ruby 2.6.4 (ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux])
Gem installed
NOKOGIRI_USE_SYSTEM_LIBRARIES=1 gem install asciidoctor-epub3 --pre
Maven environement
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: ---/.sdkman/candidates/maven/current
Java version: 11.0.6, vendor: AdoptOpenJDK, runtime: ---/.sdkman/candidates/java/11.0.6.hs-adpt
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.13-3-manjaro", arch: "amd64", family: "unix"
The text was updated successfully, but these errors were encountered: