Jbang on cygwin shell - cygwin

$ curl -Ls https://sh.jbang.dev | bash -s - app install --fresh --force quarkus#quarkusio
Downloading JBang...
Error downloading JBang

Use jbang 0.88. Fixed the bug that made it fail on Cygwin shell.

I see no problem in Jbang download
$ curl -Ls https://sh.jbang.dev | bash -s - app install --fresh --force quarkus#quarkusio
Downloading JBang...
Installing JBang...
Downloading JDK 11. Be patient, this can take several minutes...
Installing JDK 11...
Fehler: Hauptklasse dev.jbang.Main konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: dev.jbang.Main
Fehler: Hauptklasse dev.jbang.Main konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: dev.jbang.Main
konnte nicht gefunden oder geladen werden means could not be found or loaded
but of course as there is no Cygwin Java Machine, I will be very surprised if could work...

Related

npm:relocation error: /lib64/libnode.so.93: symbol FIPS_selftest, version OPENSSL_1_1_0g not defined in file libcrypto.so.1.1 with link time reference

after installing nodejs, npm and yarn via yum install command whenever I try to run npm command I get the following error
node: relocation error: /lib64/libnode.so.93: symbol FIPS_selftest, version OPENSSL_1_1_0g not defined in file libcrypto.so.1.1 with link time reference
This is happening on CentOS 7 with the latest updates installed.
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
I searched the web for this error and I cannot find anything relevant and so far this is happening on my 5th server.
I tried removing nodejs, npm and yarn and even installing older versions but with no results. Also I tried removing openssl and again that didn't help.
Thanks
I also encountered a similar problem. I found out that it is because I have the source code of another version 1.1.1 of openssl in my system, and the version installed in the system is 1.0.2; and I set the program runtime library file search path LD_LIBRARY_PATH to the 1.1.1 version openssl source code path, because the versions before and after openssl are incompatible, when the system runs npm, it automatically finds the 1.1.1 version of openssl according to the LD_LIBRARY_PATH path, so an error is reported.
Solution: export LD_LIBRARY_PATH="" to let the program automatically find the version of openssl installed on the system

how to install xgap in ubuntu linux

when i tried to install xgap in the terminal of linux there is an error accure in the step ((make)) as below:
root#heino-VirtualBox:~/Downloads/xgap-4.30# make
( cd bin/x86_64-unknown-linux-gnu-gcc ; make CC=gcc )
make[1]: Verzeichnis „/home/heino/Downloads/xgap-4.30/bin/x86_64-unknown-linux-gnu-gcc“ wird betreten
gcc -I. -g -O2 -o xcmds.o -c ../../src.x11/xcmds.c
In file included from ../../src.x11/xcmds.c:9:0:
../../src.x11/utils.h:134:13: **fatal error: X11/StringDefs.h: Datei oder Verzeichnis nicht gefunden
#include <X11/StringDefs.h>**
compilation terminated.
Makefile:31: recipe for target 'xcmds.o' failed
make[1]: *** [xcmds.o] Error 1
make[1]: Verzeichnis „/home/heino/Downloads/xgap-4.30/bin/x86_64-unknown-linux-gnu-gcc“ wird verlassen
Makefile:47: recipe for target 'compile' failed
make: *** [compile] Error 2
so what should i do now? and what should i write which command after that to install the startup script??
thanks alots!
Edit: Highlighting
( Also ref. the previous xgap question How to install xgap 4.30 in Ubuntu using the terminal? by #Elias ).
fatal error: X11/StringDefs.h: Datei oder Verzeichnis nicht gefunden
Search for a file :
$ sudo apt install apt-file
$ apt-file update
$ apt-file search StringDefs.h
Install the library : $ apt install libxt-dev

Node.js installation wrong version. Why apt install not working correct?

I try to install Node.js 6 on my Raspberry Pi. I already searched to web and found a howto, but this is not working for me. What is wrong?
Raspbian GNU/Linux 10 (Buster)
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
## Installing the NodeSource Node.js 6.x LTS Boron repo...
## Populating apt-get cache...
+ apt-get update
OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
OK:2 http://archive.raspberrypi.org/debian buster InRelease
OK:3 https://deb.nodesource.com/node_6.x buster InRelease
Paketlisten werden gelesen... Fertig
## Confirming "buster" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_6.x/dists/buster/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK
## Creating apt sources list file for the NodeSource Node.js 6.x LTS Boron repo...
+ echo 'deb https://deb.nodesource.com/node_6.x buster main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_6.x buster main' >> /etc/apt/sources.list.d/nodesource.list
## Running `apt-get update` for you...
+ apt-get update
OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
OK:2 http://archive.raspberrypi.org/debian buster InRelease
OK:3 https://deb.nodesource.com/node_6.x buster InRelease
Paketlisten werden gelesen... Fertig
## Run `sudo apt-get install -y nodejs` to install Node.js 6.x LTS Boron and npm
## You may also need development tools to build native addons:
sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
root#Raspi:/home/pi# apt-get install --yes nodejs
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
gyp libjs-inherits libjs-is-typedarray libnode-dev libssl-dev libuv1-dev python-pkg-resources
Verwenden Sie »apt autoremove«, um sie zu entfernen.
Vorgeschlagene Pakete:
npm
Die folgenden NEUEN Pakete werden installiert:
nodejs
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
Es müssen noch 0 B von 86,5 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 153 kB Plattenplatz zusätzlich benutzt.
Vormals nicht ausgewähltes Paket nodejs wird gewählt.
(Lese Datenbank ... 51780 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../nodejs_10.15.2~dfsg-2+rpi1_armhf.deb ...
Entpacken von nodejs (10.15.2~dfsg-2+rpi1) ...
nodejs (10.15.2~dfsg-2+rpi1) wird eingerichtet ...
update-alternatives: /usr/bin/nodejs wird verwendet, um /usr/bin/js (js) im automatischen Modus bereitzustellen
Trigger für man-db (2.8.5-2) werden verarbeitet ...
I already tried with sudo and also as root.
Why it still installing Node.js 10??
Any idea what to do?
Get your nodejs tarball from node site e.g. node-v6.11.3-linux-x64.tar.gz from v6.11.3
wget nodejs.org/dist/v8.12.0/node-v8.12.0-linux-armv7l.tar.gz
Unpack provided archive files to /opt/nodejs
mkdir -p /opt/nodejs
tar -xvzf node-v8.12.0-linux-armv7l.tar.gz -C /opt/nodejs/
Create link to current node version
cd /opt/nodejs
mv node-v8.12.0-linux-armv7l 8.12.0
ln -s 8.12.0 current
Create link to current node binary
ln -s /opt/nodejs/current/bin/node /bin/node
Verify Node version
node -v
v8.12.0

Try: gem pristine bootsnap --version 1.3.1 Ignoring bootsnap-1.3.1 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.1

rails generate acts_as_votable:migration
Ignoring bootsnap-1.3.1 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.1
Ignoring bootsnap-1.3.1 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.1
/home/ayesha/.rvm/gems/ruby-2.2.1/gems/bundler-1.16.3/lib/bundler/definition.rb:491:in validate_ruby!': Your Ruby version is 2.2.1, but your Gemfile specified 2.5.1 (Bundler::RubyVersionMismatch)
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/bundler-1.16.3/lib/bundler/definition.rb:466:invalidate_runtime!'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/bundler-1.16.3/lib/bundler.rb:101:in setup'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/bundler-1.16.3/lib/bundler/setup.rb:20:in'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in require'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/commands.rb:33:in <module:Spring>'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/commands.rb:4:in'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in require'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/server.rb:9:in <top (required)>'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /home/ayesha/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in require'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/client/server.rb:9:incall'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/client/command.rb:7:in call'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/lib/spring/client.rb:30:inrun'
from /home/ayesha/.rvm/gems/ruby-2.2.1/gems/spring-2.0.2/bin/spring:49:in `'
The error message is telling you what to do, though perhaps not very directly.
Try running this command:
gem pristine bootsnap --version 1.3.1
That will try to reinstall the bootsnap gem from scratch.

Can't install or update redhat-lsb package for RHEL 5

I moved a daemon shell-script from a Devian server to a RHEL 5 server. The script now throws the error :
E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed
The error in the script seems to come from here:
if ! [ -x "/lib/lsb/init-functions" ]; then
. /lib/lsb/init-functions
else
echo "E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed"
exit 1
fi
But when I try to install a newer version of the lsb-base for RHEL5 I get the following:
[root#********** tmp]# rpm -ivh redhat-lsb-4.0-2.1.4.el5.i386.rpm
warning: redhat-lsb-4.0-2.1.4.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 192a7d7d
Preparing... ########################################### [100%]
file /etc/redhat-lsb/lsb_start_daemon from install of redhat-lsb-4.0-2.1.4.el5.i386 conflicts with file from package redhat-lsb-3.1-12.3.EL.x86_64
file /usr/share/man/man1/lsb_release.1.gz from install of redhat-lsb-4.0-2.1.4.el5.i386 conflicts with file from package redhat-lsb-3.1-12.3.EL.x86_64
file /etc/redhat-lsb/lsb_start_daemon from install of redhat-lsb-4.0-2.1.4.el5.i386 conflicts with file from package redhat-lsb-3.1-12.3.EL.i386
file /usr/sbin/redhat_lsb_trigger.i386 from install of redhat-lsb-4.0-2.1.4.el5.i386 conflicts with file from package redhat-lsb-3.1-12.3.EL.i386
file /usr/share/man/man1/lsb_release.1.gz from install of redhat-lsb-4.0-2.1.4.el5.i386 conflicts with file from package redhat-lsb-3.1-12.3.EL.i386
When I try to upgrade it with the same version redhat-lsb-3.1-12.3.EL.i386.rpm or redhat-lsb-3.1-12.3.EL.x86_64.rpm I get that:
>> rpm -Uvh redhat-lsb-3.1-12.3.EL.x86_64.rpm
>> warning: redhat-lsb-3.1-12.3.EL.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID a7048f8d
Preparing... ########################################### [100%]
package redhat-lsb-3.1-12.3.EL.x86_64 is already installed
file /usr/sbin/redhat_lsb_trigger.x86_64 from install of redhat-lsb-3.1-12.3.EL.x86_64 conflicts with file from package redhat-lsb-3.1-12.3.EL.x86_64
file /usr/share/man/man1/lsb_release.1.gz from install of redhat-lsb-3.1-12.3.EL.x86_64 conflicts with file from package redhat-lsb-3.1-12.3.EL.x86_64
file /usr/share/man/man1/lsb_release.1.gz from install of redhat-lsb-3.1-12.3.EL.x86_64 conflicts with file from package redhat-lsb-3.1-12.3.EL.i386
Information about the system:
[root#*********** tmp]# cat /proc/version
Linux version 2.6.18-128.el5 (mockbuild#hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Wed Dec 17 11:41:38 EST 2008
[root#*********** tmp]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
EDIT:
There is no yum installed, that's why I didn't tried to install it via that.
Any idea?
Same problem occurs for the following packages:
redhat-lsb-3.1-12.3.EL.i386.rpm
redhat-lsb-3.1-12.3.EL.src.rpm
redhat-lsb-3.1-12.3.EL.x86_64.rpm
redhat-lsb-4.0-2.1.4.el5.i386.rpm
redhat-lsb-4.0-2.1.4.el5.src.rpm
redhat-lsb-4.0-2.1.4.el5.x86_64.rpm
It looks like you are trying to install an RPM for the i386 architecture but your system is x86_64. Try installing redhat-lsb-4.0-2.1.4.el5.x86_64.rpm
Use following Parameters the RPMs :
- F Force to install packege
--replacepkgs : Install the packages even if some of them are already installed on this system.
--nodeps: Don't do a dependency check before installing or upgrading a package
Using this command resolve this type of errors:

Resources