I try manually touch .npmrc and set token into it:
touch ~/.npmrc && echo "/npm.pkg.github.com/:_authToken=MY_TOKEN" >> ~/.npmrc
BUT still get 401 error, like this:
Showing All Messages
error An unexpected error occurred: "https://npm.pkg.github.com/download/MyPrivateDepedency: Request failed "401 Unauthorized"".
AND also my ci_post_clone.sh like this:
#!/bin/sh
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
touch ~/.npmrc && echo "registry=https://registry.npmjs.org/
/npm.pkg.github.com/:_authToken=MYTOKEN" >> ~/.npmrc
cat ~/.npmrc
source ~/.npmrc
brew install cocoapods
brew install node#16
brew link node#16
brew install yarn
pod setup
yarn
pod install
So, it is really confused that whether i could download github package for Xcode Cloud
Related
I'm trying to install VEP, but am getting stuck installing its dependencies.
I try to install as suggested here https://www.ensembl.org/info/docs/tools/vep/script/index.html
cd ~/bin
git clone https://github.com/Ensembl/ensembl-vep.git
cd ensembl-vep
perl INSTALL.pl
But I get this error:
ERROR: DBI module not found. VEP requires the DBI perl module to function
http://www.ensembl.org/info/docs/tools/vep/script/vep_download.html#requirements
So, I then try and install DBI as suggested here https://www.ensembl.org/info/docs/tools/vep/script/vep_download.html#requirements
cpanm DBI
But I get this error:
Can't write to cpanm home '/Users/michaelflower/.cpanm': You should fix it with chown/chmod first.
How to I 'fix' it with chown/chmod??
On Ubuntu 20.04 this worked for me:
sudo apt install libdbi-perl
But then I ran into a bunch of other errors which I solved sequentially by doing these things (I restarted the installation after every step but I guess if you first do them all, then it should work in 1 go):
sudo apt update # Or you'll more errors
sudo apt install unzip
sudo apt install build-essential
sudo apt install libbz2-dev liblzma-dev zlib1g-dev
sudo apt install libcam-pdf-perl
cpan Bio::DB:HTS # Takes a while as well
This perl modules wants to install
cpan Bio::SeqFeature::Lite # Takes quite a while
Which wants to install:
cpan XML::DOM XML::Parser::PerlSAX XML::Twig
Which then ultimately fails with:
Files=109, Tests=72, 4 wallclock secs ( 0.28 usr 0.09 sys + 2.29 cusr 0.83 csys = 3.49 CPU)
Result: FAIL
Failed 103/109 test programs. 32/72 subtests failed.
make: *** [Makefile:837: test_dynamic] Error 255
MIROD/XML-Twig-3.52.tar.gz
one dependency not OK (XML::Parser); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MIROD/XML-Twig-3.52.tar.gz
So I try to install XML::Parser
cpan XML::Parser
and it fails too
Note that if you build against a shareable library in a non-standard location
you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
variable at run time for perl to find the library.
No 'Makefile' created TODDR/XML-Parser-2.46.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
I'll ddg some more...
... ok, I just reran to original install command and it crashes with a new message, it wants me to intall LWP::Simple. So I do, on my first attempt it crashed with a permissions error so I add sudo
sudo cpan LWP::Simple
Restarting install...
perl INSTALL.pl
SUCCESS!
Hi I have downloaded this sample app https://github.com/iZaL/my-appointment . when i am runing this getting error .can you help me on this issue
my-appointment-master/src/containers/Category/Category.js: Unable to find this module in its module map or any of the node_modules directories under /Users/node_modules/react-native-alphabetlistview and its parent directories
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: watchman watch-del-all.
2. Delete the node_modules folder: rm -rf node_modules && npm install.
3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache.
i have tried to reset this all but getting same issue
It looks like the project package.json is missing the dependency
react-native-alphabetlistview.
You can install it via
npm install react-native-alphabetlistview --save
I am trying to build SDK for linphone-iphone.
But, unable to do so. It is giving me an error:
"You need at least CMake version 3.3.20150815 but you are currently using
3.2.3. There is no Cmake release available for it yet, so you must either
compile it manually or revert to XCode6 temporary."
I am using Xcode 7.1.
Even I don't know how to compile it manually or revert to XCode6 temporary. So, if anybody knows, please help me.
Note: I am building it by command "./prepare.py -c && ./prepare.py && make" in linphone-iphone project directory from terminal in Mac OS as per instructions given on https://github.com/BelledonneCommunications/linphone-iphone.
You should install cmake version >= 3.2.3
install them like this:
brew install cmake
this will install cmake to /usr/local/bin You can check version like this:
/usr/local/bin/cmake --version
then you need to reorder your PATH variable:
export PATH=/usr/local/bin:$PATH
after that, you can continue:
./prepare.py -c
./prepare.py
make
Solved by updating linphone submodule:
git pull && git submodule update --init --recursive && ./prepare.py -c && make
I am trying to install Rglpk using the install.packages command. I am getting this error :
/bin/sh: line 0: cd: GLPK: No such file or directory
make: *** [GLPK.ts] Error 1
The glpk-dev package is already installed :
rpm -qa| grep glpk-dev
glpk-devel-4.40-1.1.el6.x86_64
Thanks for your help,
Hi what I did was the following as a sudoer
cd usr local
wget http://ftp.gnu.org/gnu/glpk/glpk-4.54.tar.gz
tar xfzv glpk-4.54.tar.gz
mkdir GLPK
./configure
make
make install
then download the Rglpk_0.6-0.tar.gz and install.package the usual way. It is basically the same as what was done here, but as a sudoer:
I got this fixed by running 'sudo make' and 'sudo make install' instead of 'make' and 'make install'. Not sure if this is good practice, someone else be the judge.
cd $HOME
wget http://ftp.gnu.org/gnu/glpk/glpk-4.65.tar.gz
tar xfzv glpk-4.65.tar.gz
mkdir GLPK
./configure
sudo make
sudo make install
Then run install.packages('Rglpk') from within R.
My experience was the following as a sudoer:
install GLPK package: see https://en.wikibooks.org/wiki/GLPK/Linux_OS
install Rglpk:
# install devtools package beforehand. Or, you can download the Rglpk package manually, and then install in R.
# note that the latest version of Rglpk does not work on my Redhat system. Instead, the version 0.6-0 works perfectly.
devtools::install_url("https://cran.r-project.org/src/contrib/Archive/Rglpk/Rglpk_0.6-0.tar.gz")
Testing: in R, try require(Rgplk)
I followed the link below to install npm
http://shapeshed.com/setting-up-nodejs-and-npm-on-mac-osx/
Node -v 0.8.2 was installed properly.
Then I used the following command to install npm
curl http://npmjs.org/install.sh | sh
but I got an error saying -
Failed to get tarball url for npm/1.1
I also cloned npm from github and then did make install but it stopped at the third line shown below.
npm http GET https://github.com/isaacs/ronnjs/tarball/master
npm http 200 https://github.com/isaacs/ronnjs/tarball/master
npm http GET https://registry.npmjs.org/opts
After trying for sometime I then downloaded the install.sh file and then changed
https://registry.npmjs.org/ to http://registry.npmjs.org/ at all places.
Then as a root user I ran the following command
bash path_to_install.sh
and npm -v = 1.1.42 was installed
But when I tried to install juggernaut with the following command
npm install -g juggernaut
It gets stuck at the following line and nothing happens.
npm http GET https://registry.npmjs.org/juggernaut
I guess the problem is with the https url or the way I installed npm.
How can I fix this problem.
Any help would be appreciated.
It worked when I replaced https://registry.npmjs.org to http://registry.npmjs.org inside npm.