Composer package install warning in command line - command-line

I tried to install a package from here:
https://iwader.co.uk/post/tymon-jwt-auth-with-lumen-5-2
So, I try to run this command:
composer require tymon/jwt-auth:"^1.0#dev"
But I got this error:
The requested package tymon/jwt-auth: could not be found, it looks like its name is invalid,
":" is not allowed in package names.
May you have experience to handle this?

Try quoting the entire name + version string when using the require command:
composer require "tymon/jwt-auth:^1.0#dev"

Related

Error in installing Shipstation Plugin for Magento 2 Store

I am installing Auctane-ShipStation module for Magento 2.3.4 by referring the following site https://help.shipstation.com/hc/en-us/articles/360025855652-Magento#connect-a-magento-store-to-shipstation-0-1.
There is no option to directly download the shipstation module. They are asking to install it via composer. I am using " composer require auctane/api:2.2.9 " command to install it but it is giving error " [InvalidArgumentException] Could not find a matching version of package auctane/api. Check the package spelling, your version constraint and the package is available in a stability which matches your minimum-stability( stable). "
Open your composer.json if that package has no stable version then you have to change your minimum-stability to dev.
https://getcomposer.org/doc/04-schema.md#minimum-stability

ViennaRNA package's Perl module RNA.pm is required

I am running a toolkit named RNA Framework that requires ViennaRNA to be installed.
I have installed the ViennaRNA 2.4.14 to run a function named rf-fold, However, I constantly receive this error:
[!] Error: ViennaRNA package's Perl module RNA.pm is required.
Please ensure that `ViennaRNA package v2.2.0` (or greater) is installed and try again
When I check the missing RNA.pm module, I can see it is in this path:
/home/user/ViennaRNA/lib/site_perl/5.28.0/
when I check which Perl I am using (type: which Perl) it gives me:
/home/user/perl5/perlbrew/perls/perl-5.28.0/bin/perl
I tried different ways to install the ViennaRNA, including conda install -c bioconda viennarna, compile and make install from ViennaRNA-2.4.14.tar.gz file from the official website. But I cannot get over this error.
I saw a similar issue here and there is a solution (https://www.perlmonks.org/?node_id=1052814), but I don't fully understand the content. Thanks in advance for any help and sorry if it is a basic question!
I think the RNA.pm come with the package, when you download ViennaRNA-2.4.14.tar.gz and install following this link.
So I found my RNA.pm is in the directory:
/share/apps/ViennaRNA-2.1.7/compile-install/lib/site_perl/5.14.2/x86_64-linux-thread-multi/RNA.pm
And I modified the PERL5LIB environment variable by :
export PERL5LIB=/share/apps/ViennaRNA-2.1.7/compile-install/lib/
Problem solved!

rpm -e fails with unpre script error in rpmspec file

I have developed a package with rpmbuild with unpre script error. The package on testing successfully installed but now Iam unable to remove the package (even with force option) or nodeps option
I have encountered the same situation. However I was able to uninstall the package with --noscripts option as in rpm -e <pkgname> --noscripts.

Scala / SBT Assembly Error: Could not create directory

I get the following error when trying to execute the command sbt/sbt assembly:
[error] Could not create directory
/home/user/Downloads/spark-1.6.0/external/mqtt/target/streams/test/$global/$global/discoveredMainClasses
I have no idea...
Check your permissions for creating.
if you run before this command with sudo and after that try it without sudo you will receive this message.
It was an issue with something being out of date. I tried reinstalling Ubuntu with updates included and it worked this time. I probably could have also done this by checking each package manually, but this was easier.

ruby Fail to load readline

I intend to use Tab Completion, then I try to load readline using the following command:
$ irb -r irb/completion
However, irb throws an error message shown below:
/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require':LoadError: cannot load such file -- readline
Then I try to install readline using command:
gem install readline
But, RubyGems prompt me that
ERROR: Could not find a valid gem 'readline' (>= 0) in any repository
How can I fix it?
You have been troubled by the naming.
The repo name is rb-readline
You need to have the readline libraries installed when you compile Ruby.
Follow this blog: http://vvv.tobiassjosten.net/ruby-on-rails/fixing-readline-for-the-ruby-on-rails-console/