I'm following the instructions found here:
https://github.com/compound-finance/compound-protocol
I've ran:
git clone https://github.com/compound-finance/compound-protocol
cd compound-protocol
yarn install --lock-file
yarn test
yarn run v1.22.11
$ ./script/test
Unknown option: p
Unknown option: p
Type shasum -h for help
Type shasum -h for help
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Why do I keep getting this error with unknown option p
Try to use Node.js version 12. NVM is a great tool to quickly switch between versions of Node on the command line. https://nvm.sh
Related
I am trying to run MySQL in an R script running inside a Docker (actually Rocker) container, but am getting an error on the “install_packages(…” step. The only solution I found that was somewhat similar was specific to running RedHat Linux (I am running Mac OS X 10.15) and the solution included pointing to several directories that I do not have. Running under RStudio or from the command line, RMySQL loads without a problem.
Dockerfile:
FROM rocker/r-ver:latest
RUN mkdir /home/analysis
COPY install_packages.R /home/analysis/install_packages.R
COPY script_basic.R /home/analysis/script_basic.R
RUN Rscript /home/analysis/install_packages.R
CMD Rscript /home/analysis/script_basic.R
R files:
script_basic.R
library( RMySQL )
install_packages.R
install_packages(“RMySQL”)
Commands and responses:
$ docker build -t myapp .
…
Successfully tagged myapp:latest
$ docker run -it --rm myapp
Loading required package: DBI
Error: package or namespace load failed for ‘RMySQL’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/usr/local/lib/R/site-library/RMySQL/libs/RMySQL.so':
libmysqlclient.so.21: cannot open shared object file: No such file or directory
Execution halted
$
I believe that rocker/r-dev does not include the libraries you need to get this to run. Untested, but try something like this.
Dockerfile
FROM rocker/r-ver:latest
RUN mkdir /home/analysis
RUN apt-get update \
&& apt-get install -y --no-install-recommends libmariadbclient-dev
COPY install_packages.R /home/analysis/install_packages.R
COPY script_basic.R /home/analysis/script_basic.R
RUN Rscript /home/analysis/install_packages.R
CMD Rscript /home/analysis/script_basic.R
You can find the need for certain libraries on https://cran.r-project.org/web/packages/RMySQL/index.html, as
SystemRequirements: libmariadb-client-dev | libmariadb-client-lgpl-dev | libmysqlclient-dev (deb), mariadb-devel (rpm), mariadb | mysql-connector-c (brew), mysql56_dev (csw)
and a note on how to install them in RMySQL's github README.md's Installation section.
(The CRAN page references libmysqlclient-dev, but the github page suggests "the mariadb implementation is much better". I don't know the premise of the statement, just explaining why I suggested one and CRAN listed another.)
I need to archive my MySQL-database every year and I found the Percona Toolkit. But I want to try it on XAMPP first and not on the actual server. I used the Shell from the XAMPP Control Panel.
First, I installed pt-archiver with the command:
wget percona.com/get/pt-archiver --no-check-certificate
The installation was successful. I tried my first dry run:
pt-archiver --source h=127.0.0.1,D=db_ilb,t=erstbegegnung --file 'C:\xampp\Archive\%Y-%m-%d-%D.%t' --where "1=1" --limit 1000 --commit-each --dry-run
and it threw an error:
install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.
Compilation failed in require at (eval 14) line 3.
at ./pt-archiver line 2499.
After trying to install DBD::mysql via CSPAN, another error was thrown:
Warning: No success on command[C:\xampp\perl\bin\perl.exe Makefile.PL]
CPAN: YAML::XS loaded ok (v0.39)
MICHIELB/DBD-mysql-4.041.tar.gz
C:\xampp\perl\bin\perl.exe Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Stopping: 'install' failed for 'DBD::mysql'.
Could not read metadata file. Falling back to other methods to determine prerequisites
I don't know what to do next... If you have any other suggestions for archiving, let me know :)
Following the instructions at https://github.com/processone/ejabberd-contrib I try running:
ejabberdctl module_install ejabberd_auth_http
But the response I get is:
Error: not available
Do I need to download the module to a specific place in the ejabberd install path for this to work, or is there some other step missing?
I tried the following sequence on ejabberd and it seems at least to install:
Make sure ejabberd is started
$ ./ejabberdctl start
Download the list of available modules:
$ ./ejabberdctl modules_update_specs
Check available modules:
$ ./ejabberdctl modules_available
Install the module:
$ ./ejabberdctl module_install ejabberd_auth_http
src/ejabberd_auth_http.erl:11: Warning: behaviour ejabberd_gen_auth undefined
ok
From there you should be able to configure it and restart ejabberd.
Reference: Easy installer and structure for ejabberd contributed modules
I'm trying to build from source MariaDB on CentOS 7. I have only done the following commands before I get the error shown in this image:
$ cd /usr/local/src
$ wget https://downloads.mariadb.org/interstitial/mariadb-5.5.40/source/mariadb-5.5.40.tar.gz/from/http%3A//ftp.ddg.lth.se/mariadb
$ tar xzvf mariadb
$ cd mariadb-5.5.40/
$ chown -R root.root .
$ cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/mariadb
proof that libaio-devel is installed
For anyone that is in a similar situation, cmake apparently does a pretty bad job of re-checking dependencies, even removing the cache file doesn't work very well.
Just delete and re-extract from the .tar.gz and then cmake again, if you actually have the dependencies then they will be found.
i face with following error when i build roms model by ./build.bash command. appeared error is
cpp: error trying to exec 'cc1': execvp: No such file or directory
i use yum install gcc-c++ but it replied that package gcc-c++-4.6.3-2fc16.i686 already installed . but i get nothing after typing whereis cc1.then i find cc1 in /usr/libexec/gcc/i686-redhat-linux/4.6.3. therefore i navigate to /usr/bin and create link by ln -s cc cc1. after that by typing whereis cc1 it replied:/usr/bin/cc1
again by typing ./build.bash it reply:
cc1:error:unrecognized command line option '-quiet'
would you please tell me how i can sort out this problem.
cheers
fereshte