ttscoff/mdless

Ubuntu 18.04: cannot compile binary

leder11011 opened this issue · 8 comments

Previous git sources allowed me to generate mdless binary.
Now I only get errors:
Please give me a hint how to compile mdless binary!


leder@leder-ryzen-home:~/Git/mdless$ bundle update
The gemspec at /home/leder/Git/mdless/mdless/mdless.gemspec is not valid. Please fix this gemspec.
The validation error was 'metadata['homepage_uri'] has invalid link: "TODO: Put your gem's website or public
repo URL here."'
leder@leder-ryzen-home:~/Git/mdless$ gem build mdless.gemspec 
WARNING:  See http://guides.rubygems.org/specification-reference/ for help
ERROR:  While executing gem ... (Gem::InvalidSpecificationException)
    ["bin/mdless"] are not files
leder@leder-ryzen-home:~/Git/mdless$ gem install mdless
Done installing documentation for  after 0 seconds
leder@leder-ryzen-home:~/Git/mdless$ 

leder@leder-ryzen-home:~/Git/mdless$ rake package
rake aborted!
Don't know how to build task 'bin/mdless' (See the list of available tasks with `rake --tasks`)
/home/leder/.gem/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => package => gem => pkg/mdless-1.0.10.gem
(See full trace by running task with --trace)
leder@leder-ryzen-home:~/Git/mdless$ 

Is there a reason you're not just using gem install mdless? I haven't made any significant changes that should break your ability to compile, but you're getting errors I can't explain without a more info on what you're trying to do.

OK: fresh git clone installed mdless binary in bin folder. But I am unable to:

  • delete bin folder
  • compile binary mdless by myself

Any ideas? This should be possible in order not to checkout the binary, but do a git pull on the sources and implementing any changes by myself!

Not sure about 18.04, but on ubuntu 20.04 it compiles and runs successfully. I did:
sudo apt install rake
rake package
sudo rake install

I previously had a snap installed for mdless - but it didn't like one of the terminal types I use. The one I compiled has no trouble with it.