Load JAGS to cluster - hpc

I would like to install jagsUI on the cluster that I am using. However, this requires me to load JAGS4.3.0 module which I have installed on my computer. This is the error I get when installing jagsUI:
During startup - Warning message:
Setting LC_CTYPE failed, using "C"
* installing *source* package 'rjags' ...
** package 'rjags' successfully unpacked and MD5 sums checked
** using non-staged installation
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: pkg-config file for jags 4 unavailable
configure: WARNING: Consider adding the directory containing `jags.pc`
configure: WARNING: to the PKG_CONFIG_PATH environment variable
configure: Attempting legacy configuration of rjags
checking for jags... no
configure: error: "automatic detection of JAGS failed. Please use pkg-config to locate the JAGS library. See the INSTALL file for details."
ERROR: configuration failed for package 'rjags'
* removing '/home/cltane002/Rlibs/rjags'
During startup - Warning message:
Setting LC_CTYPE failed, using "C"
ERROR: dependency 'rjags' is not available for package 'jagsUI'
* removing '/home/cltane002/Rlibs/jagsUI'
The downloaded source packages are in
'/tmp/RtmpyIUv3r/downloaded_packages'
Warning messages:
1: In install.packages("jagsUI", "~/Rlibs", "http://ftp.ussg.iu.edu/CRAN") :
installation of package 'rjags' had non-zero exit status
2: In install.packages("jagsUI", "~/Rlibs", "http://ftp.ussg.iu.edu/CRAN") :
installation of package 'jagsUI' had non-zero exit status
I have checked on my terminal whether jags has been installed. The module file for jags is not showing when I do module in the terminal connected to the cluster. I do I load the JAGS software to the cluster?

I would check the documentation page of the hpc cluster. The cluster I used before from my university have already compiled and installed the JAGS module on the cluster. All I needed to do is simply load the module. Usually, the hpc documentation website has a page on what modules are available and also example scripts to load and run them.

Related

Files list file for package 'git' contains empty filename error

I have a Raspberry Pi 4 running Raspian Lite Version 10. So I far I have installed git, Apache, php, and phpmyadmin on it.
Now while trying to install python3-venv package (or any package for that matter) using sudo apt-get install python3-venv I am getting following error -
Selecting previously unselected package python-pip-whl. dpkg: unrecoverable fatal error, aborting: files list file for package 'git' contains empty filename E: Sub-process /usr/bin/dpkg returned an error code (2)
I am not able to install any package on my system due to this error. So far I tried deleting the git folder from /usr/bin/dpkg but it has not seemed to help.

"undefined symbol: opus_multistream_surround_encoder_create" when calling opusenc or ffmpeg

On Ubuntu 20.04, I had two operational copies of opus-tools 0.1.10-1 (amd64) and ffmpeg 7:4.2.4-1ubuntu0.1 (amd64). I installed lame 3.100-3 (amd64) and opus-tools / ffmpeg stopped working with the following errors:
ffmpeg: symbol lookup error: /lib/x86_64-linux-gnu/libavcodec.so.58: undefined symbol: opus_multistream_surround_encoder_create
opusenc: symbol lookup error: opusenc: undefined symbol: opus_multistream_surround_encoder_create
I uninstalled lame and got the same messages. Then I used the --auto-remove option to remove any dependency and faced the same issues. After that, I uninstalled and reinstalled opus-tools and ffmpeg and that didn't help. Almost giving up, I followed this FFmpeg-user thread and executed ldconfig. No luck either.
Finally, I tried building and installing opus-tools from the sources but got the following message:
configure: error: Package requirements (ogg >= 1.3) were not met:
No package 'ogg' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables OGG_CFLAGS
and OGG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Thanks in advance for any help.
Do a backup of your files and reinstall ubuntu 20.04.

QuickChick not Functional

I have installed QuickChick using opam using the instructions given on QuickChick's GitHub page:
https://github.com/QuickChick/QuickChick
After a successful installation, I tried to run the QuickChick tutorial
https://github.com/QuickChick/QuickChick/blob/master/examples/Tutorial.v
and Coq returned the following error message
Error:
Cannot find a physical path bound to logical path matching suffix
<> and prefix QuickChick.
when I tried to process the line
From QuickChick Require Import QuickChick.
I'm running Coq 8.8, Opam 1.2.2, Ocaml 4.04.0 and Coq-QuickChick 1.0.1 on Ubuntu 16.04. Is there some configuration that am I missing?

gdcmanon - Requested cryptoraphic library not configured

I am using gdcmanon to anonimize dicom files like the following:
LD_LIBRARY_PATH=../lib ./gdcmanon --certificate CA_cert.cer -e ./dump ./dump/anon
But it gives the following error:
Error: In /home/travis/build/malaterre/GDCM/Source/Common/gdcmCryptoFactory.cxx, line 61, function static gdcm::CryptoFactory* gdcm::CryptoFactory::GetFactoryInstance(gdcm::CryptoFactory::CryptoLib)
No crypto factory registered with id 1
Requested cryptoraphic library not configured.
How can I solve this?
The error is because of binaries you use, it looks like SSL dependencies are not satisfied.
As a solution (workaround?), you can get the binaries via apt system. For Ubuntu 16.04 Xenial distribution, there is version 2.6.3 of libgdcm-tools package.
Another possibility is to compile gdcm from scratch, but you need development files of OpenSSL (apt install libssl-dev). Moreover, to use anonymisation with certificates, in CMake system set GDCM_USE_SYSTEM_OPENSSL=YES.

php-fpm extension listed in phpinfo() fails with "Class not found"

nginx + php-fpm on CentOS, all compiled from sources.
Adding memcached support, I compiled libmemcached and php "memcached" extension, added a line `php_admin_value[extension]=memcached.so' in the php-fpm config and restarted php-fpm.
Opening a test php with phpinfo() via web server started showing a section about "memcached" extension (screenshot). However attempts to instantiate the class fail with Fatal error: Class 'Memcached' not found.
I also tried installing the php "memcache" (without 'd') extension in the same way: downloading sources, phpize, configure, make, make install. All the same: listed in phpinfo();, "Class not found" fatal error.
What am I doing wrong, and how can I add a compiled extension to the php-fpm?
yum / pecl package managers are not an option currently, as specific versions are required.
You set up seems fine. I have the same set up, except my memcache/memcached are installed by yum. So maybe your memcache/memcached not installed properly. The following link mentions a dependency on zlib-devel.
Fatal error: Class 'Memcache' not found (installed with pecl)