Installing a BLAS implementation on CentOS 6.4 (Cloudera VM) - centos

I'm using deeplearning4j and eclipse on CentOS 6.4 (x86_64).
I have downloaded and tried to install intel MKL, OpenBLAS and ATLAS.
Yet I'm still getting this error when I run my program:
Mar 23, 2016 5:58:04 AM com.github.fommil.netlib.BLAS
WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeSystemBLAS
Mar 23, 2016 5:58:04 AM com.github.fommil.netlib.BLAS
WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeRefBLAS
Exception in thread "main" java.lang.UnsupportedOperationException
...
I found answers online talking about installing gfortran >4.7 but I failed.

Related

Unable to install gem pg in my Windows 11 using Ruby 3.2.0 Rails 7.0.4.1

I found error when try installing gem pg (postgresql), i have installing postgresql version 15.1 in my windows 11, here the code error:
C:\Windows\System32>gem install pg
Fetching pg-1.4.5.gem
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/pg-1.4.5/ext
C:/Ruby32-x64/bin/ruby.exe -I C:/Ruby32-x64/lib/ruby/3.2.0 extconf.rb
Calling libpq with GVL unlocked
checking for pg_config... no
checking for libpq per pkg-config... no
Using libpq from
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*****************************************************************************
Unable to find PostgreSQL client library.
Please install libpq or postgresql client package like so:
ridk exec sh -c "pacman -S ${MINGW_PACKAGE_PREFIX}-postgresql"
or try again with:
gem install pg -- --with-pg-config=/path/to/pg_config
or set library paths manually with:
gem install pg -- --with-pg-include=/path/to/libpq-fe.h/ --with-pg-lib=/path/to/libpq.so/
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby32-x64/bin/$(RUBY_BASE_NAME)
--with-pg
--without-pg
--enable-gvl-unlock
--disable-gvl-unlock
--enable-windows-cross
--disable-windows-cross
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--with-libpq-dir
--without-libpq-dir
--with-libpq-include
--without-libpq-include=${libpq-dir}/include
--with-libpq-lib
--without-libpq-lib=${libpq-dir}/lib
--with-libpq-config
--without-libpq-config
--with-pkg-config
--without-pkg-config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/Ruby32-x64/lib/ruby/gems/3.2.0/extensions/x64-mingw-ucrt/3.2.0/pg-1.4.5/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/pg-1.4.5 for inspection.
Results logged to C:/Ruby32-x64/lib/ruby/gems/3.2.0/extensions/x64-mingw-ucrt/3.2.0/pg-1.4.5/gem_make.out
Please help me..
I don't know does is a bug from Ruby 3.2.0 or what..
Also i see in ruby gems is shows 3 different gem of PG such as
1.4.5 - November 17, 2022 x86-mingw32 (1.8 MB)
1.4.5 - November 17, 2022 x64-mingw-ucrt (1.76 MB)
1.4.5 - November 17, 2022 x64-mingw32 (1.96 MB)
1.4.5 - November 17, 2022 (198 KB)
I don't know where exactly to install in my Windows

Missing library versions required by VSCode remote server running on Raspberry Pi

Attempting remote development with VSCode 1.43.2 hosted on Darwin 18.7.0.
SSH target is a Raspberry Pi3 running raspbian jesse.
uname -a reports "Linux 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux"
gcc version is gcc version 4.9.2 (Raspbian 4.9.2-10+deb8u2)
The remote server code installed automatically but fails to start with the following error messages.
> Server did not start successfully. Full server log at /home/pi/.vscode-server/.0ba0ca52957102ca3527cf479571617f0de6ed50.log >>>
> /home/pi/.vscode-server/bin/0ba0ca52957102ca3527cf479571617f0de6ed50/node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/pi/.vscode-server/bin/0ba0ca52957102ca3527cf479571617f0de6ed50/node)
> /home/pi/.vscode-server/bin/0ba0ca52957102ca3527cf479571617f0de6ed50/node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/pi/.vscode-server/bin/0ba0ca52957102ca3527cf479571617f0de6ed50/node)
> <<< End of server log
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6 exists on the Pi.
What do I need to do to get it working?
The version of your C++ standard library (libstdc++.so.6) is simply too old, a newer version is required to run VSCode Server.
You could probably add some backports or third-party repositories to upgrade it, but IMHO, it's not worth the hassle.
Raspbian Jessie is old, and Debian Jessie will no longer be supported after June 30, 2020.
The best thing to do is just upgrading to Raspbian Buster.

An internal error occurred during: "Starting GlassFish 5 [domain1]". Can't find bundle for base name sun.util.logging.resources.logging, locale en_DE

I am using eclipse IDE, and Glassfish5. OS is MAC. Java version is 13.0.1.
I have just started with an EJB tutorial, and found that I need Glassfish. I downloaded and added to my server. Now when I am starting it, following error occurs-
An internal error occurred during: "Starting GlassFish 5 (2) [domain1]".
Can't find bundle for base name sun.util.logging.resources.logging, locale en_DE
I got following on console-
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
-Djava.endorsed.dirs=/Users/kum/Downloads/glassfish5 2/glassfish/modules/endorsed:/Users/kum/Downloads/glassfish5 2/glassfish/lib/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Attaching my screenshot of the error-
I have tried removing and downloading full version of glassfish. But keeps on getting same error.
Somebody help please.
As suggested above, I changed the java version from 13 to 8. The server has started successfully.
I did the following steps-
On terminal brew tap adoptopenjdk/openjdk
Once above step is completed I typed brew cask install adoptopenjdk8
Once adoptopenjdk8 is installed, I checked if it is correctly installed. So I did this- ls -la /Library/Java/JavaVirtualMachines
It gave me following lines-
drwxr-xr-x 4 root wheel 128 Nov 27 11:20 .
drwxr-xr-x 4 root wheel 128 Oct 24 14:09 ..
drwxr-xr-x 3 root wheel 96 Nov 27 11:20 adoptopenjdk-8.jdk
drwxr-xr-x 3 root wheel 96 Oct 24 14:09 jdk-13.0.1.jdk
Then I checked my JAVA_HOME by doing this- echo $JAVA_HOME This gave me following
/Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home
Here, it can be seen that I have jdk-13, which I need to change to jdk 1.8. That is, I have to change my JAVA_HOME.
Change JAVA_HOME by export JAVA_HOME=`/usr/libexec/java_home -v 1.8
After this, just check the java version by java -version I got the following-
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.232-b09, mixed mode)
Thats it.
Dont forget to change the runtime environment in the glassfish server on eclipse.
Do it by-Eclipse-preferences-server-Runtime Environments-Select Glassfish-Edit-Change Java Location to your recent /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home

How to fix missing package for MYSQL 8.0 on CENTOS 7

Summary
I try to install MYSQL community edition 8.0 on my Amazon Linux server
Command i have done so far
cd /home/ec2-user
wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.16-2.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-8.0.16-2.el7.x86_64.rpm-bundle.tar
rpm -ivh mysql-community-server-8.0.16-2.el7.x86_64.rpm
I get the following error :
error: Failed dependencies:
libsasl2.so.3()(64bit) is needed by mysql-community-server-8.0.16-2.el7.x86_64
systemd is needed by mysql-community-server-8.0.16-2.el7.x86_64
What i tried by now
The library libsasl2.so.3()(64bit) is included in cyrus-sasl-lib
I tried to install it but still the same result
Here is the command i tried : sudo yum install cyrus-sasl-lib
Operating System
Linux ip-172-31-86-163 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Expected Result :
Success
Error Message i have :
Failed dependencies:
libsasl2.so.3()(64bit) is needed by mysql-community-server-8.0.16-2.el7.x86_64
try
yum install /path/to/mysql-8...rpm
then yum will try to find the dependencies you need. If some dependencies cannot be found, you can try downloading them yourself, or enabling repositories. But be careful since you are trying to install recent software on an old os... I don't know if amazon has centos8 machines already, otherwise that would probably help you out :)

How to install all dependecies while using YUM in centos

I am trying to install mongo db and to do that stdlibc++ dependencies are needed which are hard to get. so i need a command which can install all the needed dependencies by itself. Please help me on this.
uname -a
gives
Linux sscent-03.local 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
and the error is like,
Error: Package: libcddb-1.3.2-12.el7.nux.x86_64 (nux-dextop)
Requires: libcdio.so.15(CDIO_15)(64bit)
Error: libcmpiCppImpl0 conflicts with 2:tog-pegasus-2.12.0-3.el6_4.x86_64
Error: Package: libcddb-1.3.2-12.el7.nux.x86_64 (nux-dextop)
Requires: libcdio.so.15()(64bit)
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
libstdc++-4.8.3-9.el7.x86_64 is a duplicate with libstdc++-4.4.7-11.el6.x86_64
libstdc++-4.8.3-9.el7.x86_64 has missing requires of libc.so.6(GLIBC_2.14)(64bit)
Thanks,
Manirathinam M.