Skip to content
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

The exec_annotaion can run on the directory that it belong instead of other directory #23

Open
honghh2018 opened this issue Jul 12, 2021 · 0 comments

Comments

@honghh2018
Copy link

Hi guy,
Thank to develop the great tools for kegg annotation.
But i was so confusion about the exec_annotation shell script, on account of the exec_annotation only can be run on the folder that it belong. if i hope execute it in other directory with the absolute path in exec_annotation, it was complaint about below error:
internal:gem_prelude:1:in require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in internal:gem_prelude'
I had try to modifed the exec_annotation with below code, although it was error like above:
#!/usr/bin/env /Data/software/ruby-2.7.1/bin/ruby
# frozen_string_literal: true
#require_relative 'lib/kofam_scan'
require_relative '/Data/software/kofam_scan-1.3.0/lib/kofam_scan'
#require 'kofam_scan/cli'
require '/Data/software/kofam_scan-1.3.0/lib/kofam_scan/cli'
KofamScan::CLI.run(ARGV)
What should i do for this issue?
In addition, i want to exec it in everywhere by using the absolute path of exec_annotation. how can i configure it ?
Best,
Hanhuihong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant