下载安装 yum install mariadb-server.x8664 -y 启动服务设置为开机启动,输入mysql进入数据库成功 初始化设置 mysqlsecureinstallation 输入mysql的root密码,刚下载没有密码直接回车 是否修改密码选择是,然后输入两次密码 是否关闭匿名用户选择是 root本地用户登陆,无法通过network. PsN comes bundled with all its dependencies to make it easier to install. Included is PsN itself, perl, R, python, perl packages, R packages, python packages and pharmpy. Everything is tested together and nothing should interfere with any other installations of the same software that you might have on your computer.
Installation
Required Software
NONMEM
PsN supports standard and NMQual 8 installations of NONMEM.Verify that all NONMEM installations you intend to use can be run directly via the nmfe/autolog scripts and that they produce complete output files.
If running NONMEM with nmfe/autolog.pl does not work then PsN will not work either.
If you plan to use the parallelization features of NONMEM you must alsoverify that you can run NONMEM in parallel directly with the nmfe script.
Windows
PsN comes bundled with all its dependencies to make it easier to install. Included is PsN itself, perl, R, python, perl packages, R packages, python packages and pharmpy. Everything is tested together and nothing should interfere with any other installations of the same software that you might have on your computer.- Unpack the file you downloaded from the PsN Download Page. The unpacked directory can be put at any location on your computer.
- Update your PATH environment variable to include the path to PsN-5.0.0strawberryperlbin
- Add your NONMEM version by editing the PsN configuration file at PsN-5.0.0strawberryperlsitelibPsN_5_0_0psn.conf. Under [nm_versions] add for example default=C:nm744,7.4.4 if your NONMEM version is 7.4.4 and can be found under C:nm744
Linux
Before installing PsN on Linux, you should make sure that the required programs are installed on your computer.- Perl version 5.10.1 or later
- Python 3.6 or later
- make
Ubuntu/Debian
apt install python3 python3-venv python3-dev
apt install make
Installing system dependencies for plotting and reporting
To be able to use the automatic rplotting functionality (via the-rplots
option) and/or the qa
tool the following needs to be installed:- R version 3.5 or later
- pandoc
- System dependencies for R packages
Ubuntu/Debian
apt install r-base
apt install pandoc
apt install libpq-dev
apt install libcairo2-dev
apt install libssl-dev
apt install libcurl4-openssl-dev
apt install libmariadb-dev
apt install libgmp-dev
apt install libmpfr-dev
apt install libxml2-dev
apt install libudunits2-dev
apt install libblas-dev
apt install liblapack-dev
apt install libmagick++-dev
CentOS/Fedora
yum install R
yum install pandoc
yum install openssl-devel
yum install libcurl-devel
yum install cairo-devel
yum install mariadb-devel
yum install libxml2-devel
yum install ImageMagick-c++-devel
Installing Perl modules
You might need to answer some questions interactively when using the cpan command.- Open a terminal.
- Run the following commands (hit ↵ after each command), prepend sudo if necessary:
cpan Math::Random
cpan Moose
cpan MooseX::Params::Validate
cpan Statistics::Distributions
cpan Archive::Zip
cpan File::Copy::Recursive
cpan YAML::XS
cpan Inline
Installing PsN
Unpack the file you downloaded from the PsN Download Page.It will create a directory called
PsN-Source.
- Open a terminal, cd to the
PsN-Source
directory and type:sudo perl setup.pl
and ↵.sudo can be skipped if you already have write permissions in the installation directories you intend to use.
- Read all messages carefully and answer the questions on screen.The default settings are probably the best for most users. It is highly recommended to let the installation script create
psn.conf.
automatically unless you are experienced in installing and configuring PsN.
macOS
Required software on macOS
Before you install PsN on Linux or MacOS, you should make sure that the required programs and modules are installed on your computer.- Perl version 5.10.1 or later
- Python 3
-rplots
option) and/or the qa
tool the following needs to be installed:- R version 3.5 or later
- pandoc
Installing system dependencies for plotting and reporting
The dependencies of PsNR need some system packages to be installed. One option is to install them via via brew:openssl@1.1
cairo
and
mariadb-connector-c.
Installing Perl modules
You might need to answer some questions interactively when using the cpan command.- Open a terminal.
- Run the following commands (hit ↵ after each command), prepend sudo if necessary:
cpan Math::Random
cpan Moose
cpan MooseX::Params::Validate
cpan Statistics::Distributions
cpan Archive::Zip
cpan File::Copy::Recursive
cpan YAML::XS
cpan Inline
- Install homebrew
- Install Perl via homebrew:
brew install perl
- Tell the system which perl to use (the following could be put into your
~/.bash_profile
:alias perl=/usr/local/Cellar/perl/5.30.0/bin/perl
alias cpan=/usr/local/Cellar/perl/5.30.0/bin/cpan
- Now install the Perl packages
- When installing PsN remember to set the path to the brew version of Perl as the perl binary to use. (use
which perl
)
Installing PsN
Unpack the file you downloaded from the PsN Download Page.It will create a directory called
PsN-Source.
- Open a terminal, cd to the
PsN-Source
directory and type:sudo perl setup.pl
and ↵.sudo can be skipped if you already have write permissions in the installation directories you intend to use.
- Read all messages carefully and answer the questions on screen.
Do the following:
Run
setup.pl
as root.When setup.pl prompts for the PsN Utilities directory like this:PsN Utilities installation directory [/usr/bin]:
type /usr/local/bin
and ↵.
The other default settings can be accepted.
If there is a message about PsN already being installed this message is misleading,what it should say is that PsN is already *partially* installed. This is not an error,just say yes to continue.
Configuring PsN
psn.conf
for you, or if you are running NONMEM via NMQual oron a cluster, you need to edit psn.conf
in the PsN installation directory. The document PsN Configuration.pdf describes how to make the correct settings in the psn.conf file.
Portable PsN installations
This functionality is intended for advanced users only. The setup.pl script takes an optional argument 'relative':setup.pl relative
If this argument is given, the bin scripts (PsN Utilities) will use a relative path when including the lib modules (PsN Core and Toolkit).This makes the PsN installation directory movable, as long as the relative position between the bin scripts and lib modules remains the same.
In addition the
[nm_versions]
section in psn.conf can list the name of the nmfe executables instead of the full path to the NONMEM installation directoriesif at runtime the nmfe executable, chosen by default or with option -nm_version, is in the user $PATH, see documentation inPsN Configuration.pdf.The test package, if installed, will not be portable even if setup.pl is run with argument relative. If the test package is moved, the file
test/includes.pm
must be edited manually before any tests are run.Multiple PsN installations
On Windows
Since each version of PsN comes in its own bundle, multiple versions can be installed at the same time, but only one can be active in PATH at a time.On Linux and macOS
It is possible to have several installations of PsN and use them in parallel. The default version of PsN may be changed every time a new installation is made.To check which PsN version is the default use the commandpsn -version
A specific version may be called with its version number, for example
Brew Install Mariadb Version
execute-5.0.0 -help