Install error with Aptana Studio 3 on CentOS 5 (glibc version) - aptana

On a CentOS 5 server, I have downloaded and unzipped Aptana Studio 3. When I run it, the IDE opens properly but generates an error and ask to close.
The error is the following:
!SESSION 2011-10-13 16:25:43.255 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_25
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.ui 4 4 2011-10-13 16:25:46.561
!MESSAGE Unable to find Action Set: com.aptana.editor.php.presentation
!ENTRY org.eclipse.ui 4 4 2011-10-13 16:26:19.394
!MESSAGE An internal error has occurred.
!STACK 0
org.eclipse.swt.SWTError: No more handlesNative code library failed to load. (java.lang.UnsatisfiedLinkError: /usr/local/Aptana_Studio_3/plugins/com.aptana.swt.webkitbrowser.linux.x86_1.0.0.1295409059/os/linux/x86/libcefjni.so: /lib/libc.so.6: version `GLIBC_2.7' not found (required by /usr/local/Aptana_Studio_3/plugins/com.aptana.swt.webkitbrowser.linux.x86_1.0.0.1295409059/os/linux/x86/libcefjni.so))
and here is the answer to rpm -qi glibc:
Name : glibc Relocations: (not relocatable)
Version : 2.5 Vendor: CentOS
Release : 65 Build Date: Fri 12 Aug 2011 01:49:31 PM EDT
Install Date: Wed 14 Sep 2011 01:31:47 AM EDT Build Host: builder10.centos.org
Group : System Environment/Libraries Source RPM: glibc-2.5-65.src.rpm
Size : 12971036 License: LGPL
Signature : DSA/SHA1, Fri 12 Aug 2011 05:24:55 PM EDT, Key ID a8a447dce8562897
Summary : The GNU libc libraries.
Any way to work around that?
Thanks.

I just removed that plugin (com.aptana.swt.webkitbrowser.linux.x86_1.0.0.1295409059) from the plugins directory. The aptana studio startup web page doesn't work, but I haven't had a problem with regular editing yet.

Related

How to fix R on centos8

Today, i want open R on linux:
$R
bash: R: command not found...
and then I remember I installed R using dnf:
$dnf list|grep R-core
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
R-core.x86_64 4.1.3-1.el8 tuna
R-core-devel.x86_64 4.1.3-1.el8 tuna
It looks like I installed R, so I'm trying to find the location of R:
$which R
/usr/bin/which: no R in (/home/data/sym/software/metawrap/bin/:/home/data/sym/software/ncbi-blast-2.12.0+/bin/:/usr/bin:/home/data/sym/software/FastQC:/usr/condabin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/root/software:/home/data/sym//.aspera/connect/bin/)
I think I may have accidentally deleted some files of R, which made R unable to run, so I tried to reinstall R, and met error, I tried to solve error, and met more error:
$dnf install R
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
Last metadata expiration check: 1:59:20 ago on Wed 17 Aug 2022 04:09:30 PM CST.
Error:
Problem: package R-4.1.3-1.el8.x86_64 requires R-devel = 4.1.3-1.el8, but none of the providers can be installed
- package R-devel-4.1.3-1.el8.x86_64 requires R-core-devel = 4.1.3-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides openblas-devel needed by R-core-devel-4.1.3-1.el8.x86_64
- nothing provides tcl-devel needed by R-core-devel-4.1.3-1.el8.x86_64
- nothing provides texinfo-tex needed by R-core-devel-4.1.3-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
$ dnf install R --skip-broken
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
Last metadata expiration check: 2:04:58 ago on Wed 17 Aug 2022 04:09:30 PM CST.
Dependencies resolved.
Nothing to do.
Complete!
$dnf install -y epel-release
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
Last metadata expiration check: 2:02:01 ago on Wed 17 Aug 2022 04:09:30 PM CST.
Package epel-release-8-16.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
$ dnf install openblas-devel
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
Last metadata expiration check: 2:01:16 ago on Wed 17 Aug 2022 04:09:30 PM CST.
No match for argument: openblas-devel
Error: Unable to find a match: openblas-devel
$ dnf config-manager --set-enabled PowerTools
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
Error: No matching repo to modify: PowerTools.
$ dnf grouplist
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
Last metadata expiration check: 2:06:29 ago on Wed 17 Aug 2022 04:09:30 PM CST.
Available Environment Groups:
Server
Workstation
KDE Plasma Workspaces
Virtualization Host
Installed Environment Groups:
Server with GUI
Installed Groups:
Container Management
Development Tools
Headless Management
Available Groups:
Fedora Packager
Xfce
.NET Core Development
Graphical Administration Tools
Network Servers
RPM Development Tools
Scientific Support
Security Tools
Smart Card Support
System Tools
$ dnf repolist
Repository libnvidia-container is listed more than once in the configuration
Repository libnvidia-container-experimental is listed more than once in the configuration
repo id repo name
1 1
2 2
3 3
4 4
5 5
docker docker
elrepo ELRepo.org Community Enterprise Linux Repository - el8
libnvidia-container libnvidia-container
libnvidia-container-experimental libnvidia-container-experimental
mo mo
nvidia-container-runtime nvidia-container-runtime
tuna tuna
And i tried to install all the missing dependencies:
$dnf install openblas
Last metadata expiration check: 3:21:34 ago on Wed 17 Aug 2022 04:09:30 PM CST.
Error:
Problem: cannot install the best candidate for the job
- nothing provides libgfortran.so.5()(64bit) needed by openblas-0.3.15-3.el8.x86_64
- nothing provides libgfortran.so.5(GFORTRAN_8)(64bit) needed by openblas-0.3.15-3.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
$dnf search libgfortran
Last metadata expiration check: 3:25:22 ago on Wed 17 Aug 2022 04:09:30 PM CST.
============================================================ Name Matched: libgfortran ========================================
compat-libgfortran-48.i686 : Compatibility Fortran runtime library version 4.8.5
compat-libgfortran-48.x86_64 : Compatibility Fortran runtime library version 4.8.5
$dnf install compat-libgfortran-48.x86_64
Last metadata expiration check: 3:26:34 ago on Wed 17 Aug 2022 04:09:30 PM CST.
Error:
Problem: conflicting requests
- nothing provides libquadmath.so.0()(64bit) needed by compat-libgfortran-48-4.8.5-36.1.el8.x86_64
- nothing provides libquadmath.so.0(QUADMATH_1.0)(64bit) needed by compat-libgfortran-48-4.8.5-36.1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
$dnf search libquadmath
Last metadata expiration check: 3:29:24 ago on Wed 17 Aug 2022 04:09:30 PM CST.
============================================================ Name Matched: libquadmath ========================================
gcc-toolset-10-libquadmath-devel.i686 : GCC 10 __float128 support
gcc-toolset-10-libquadmath-devel.x86_64 : GCC 10 __float128 support
gcc-toolset-11-libquadmath-devel.i686 : GCC 11 __float128 support
gcc-toolset-11-libquadmath-devel.x86_64 : GCC 11 __float128 support
gcc-toolset-9-libquadmath-devel.i686 : GCC 9 __float128 support
gcc-toolset-9-libquadmath-devel.x86_64 : GCC 9 __float128 support
libquadmath-devel.i686 : GCC __float128 support
libquadmath-devel.x86_64 : GCC __float128 support
So, what exactly is the problem?

Why SSDT installation process stop with the error 0x80070001?

[3884:3870][2022-02-19T01:38:46]e000: Error 0x80070001: Process returned error: 0x1
[3884:3870][2022-02-19T01:38:46]e000: Error 0x80070001: Failed to execute EXE package.
[346C:3470][2022-02-19T01:38:46]e000: Error 0x80070001: Failed to configure per-machine EXE package.
How to solve this error?
One of the fast solutions is installing Visual Studio and reinstalling SSDT again
Solution at https://en.dirceuresende.com/blog/como-corrigir-erro-na-instalacao-do-sql-server-data-tools-ssdt-2017-setup-failed-incorrect-function-0x80070001/, using option "REPAIR".
Microsoft Windows [Version 10.0.22000.795]
(c) Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd Downloads
The system cannot find the path specified.
C:\WINDOWS\system32>cd C:\Users\jmont\Downloads
C:\Users\jmont\Downloads>dir
Volume in drive C is OS
Volume Serial Number is E6C1-BFB7
Directory of C:\Users\jmont\Downloads
08/08/2022 02:53 PM <DIR> .
08/08/2022 03:13 PM <DIR> ..
08/08/2022 02:30 PM 552,785,944 Microsoft.DataTools.IntegrationServices.exe
08/08/2022 02:53 PM 957,052,968 SSDT-Setup-ENU.exe
2 File(s) 1,509,838,912 bytes
3 Dir(s) 871,865,147,392 bytes free
C:\Users\jmont\Downloads>vs_sql.exe --layout C:\SSTD2017 --lang en-us
'vs_sql.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\jmont\Downloads>SSDT-Setup-ENU.exe --layout C:\SSTD2017 --lang en-us
For Visual Studio 2017, I had to go to https://learn.microsoft.com/en-us/sql/ssdt/previous-releases-of-sql-server-data-tools-ssdt-and-ssdt-bi?view=sql-server-ver16 and download it from the link below:
SSDT for VS 2017 (standalone installer)
Download SSDT for Visual Studio 2017 (15.9.10)
That was how I downloaded SSDT-Setup-ENU.exe.

xdebug : Fatal error with phpunit for code coverage

I wanna to test my code and coverage. I already install Xdebug extension and when I verify with php -v command, all i'ts good like that :
PHP 7.4.12 (cli) (built: Oct 27 2020 17:18:47) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v3.0.0RC1, Copyright (c) 2002-2020, by Derick Rethans
with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies
However if I run phpunit i have a fatal error :
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.
Fatal error: Uncaught SebastianBergmann\CodeCoverage\RuntimeException: xdebug.coverage_enable=On has to be set in php.ini in C:\Users\quent\Desktop\Github\quentingeeraert-website\bin\.phpunit\phpunit-7.5-0\vendor\phpunit\php-code-coverage\src\Driver\Xdebug.php on line 42
SebastianBergmann\CodeCoverage\RuntimeException: xdebug.coverage_enable=On has to be set in php.ini in C:\Users\quent\Desktop\Github\quentingeeraert-website\bin\.phpunit\phpunit-7.5-0\vendor\phpunit\php-code-coverage\src\Driver\Xdebug.php on line 42
Call Stack:
0.0005 402112 1. {main}() C:\Users\quent\Desktop\Github\quentingeeraert-website\bin\phpunit:0
0.0027 477240 2. require('C:\Users\quent\Desktop\Github\quentingeeraert-website\vendor\symfony\phpunit-bridge\bin\simple-phpunit.php') C:\Users\quent\Desktop\Github\quentingeeraert-website\bin\phpunit:13
0.2824 501760 3. include('C:\Users\quent\Desktop\Github\quentingeeraert-website\bin\.phpunit\phpunit-7.5-0\phpunit') C:\Users\quent\Desktop\Github\quentingeeraert-website\vendor\symfony\phpunit-bridge\bin\simple-phpunit.php:405
0.2989 1149952 4. PHPUnit\TextUI\Command::main($exit = ???) C:\Users\quent\Desktop\Github\quentingeeraert-website\bin\.phpunit\phpunit-7.5-0\phpunit:22
0.2989 1150064 5. Symfony\Bridge\PhpUnit\Legacy\CommandForV6->run($argv = [0 => 'bin\\phpunit', 1 => '--colors=always', 2 => '--stop-on-failure'], $exit = TRUE) C:\Users\quent\Desktop\Github\quentingeeraert-website\bin\.phpunit\phpunit-7.5-0\src\TextUI\Command.php:162
I already add xdebug.coverage_enable = On in my php.ini file so I don't understand why the system say that :/
Maybe someone can help me ? Thank you a lot for help me !
I already add xdebug.coverage_enable = On in my php.ini file so I don't understand why the system say that :/
Xdebug v3.0.0RC1
PHPUnit 7.5.20
Either upgrade PHPUnit to the version that knows about Xdebug 3 ... or downgrade Xdebug to 2.x (2.9.8 is the latest).
Thing is: xdebug.coverage_enable is the Xdebug 2 option. That option does nothing in Xdebug 3 where you should use xdebug.mode = coverage instead.
Xdebug 3 uses different config options than v2 and your version of PHPUnit is simply not aware of that. Xdebug 3 will simply report an empty value/0 for no-longer-used Xdebug 2 options.
https://3.xdebug.org/docs/upgrade_guide#Changed-Configuration-Settings
P.S. You should see a warning when you run php -i with Xdebug 3 -- it should complain if such a wrong/outdated option is present in your php.ini (unless you have configured PHP to not to report any startup errors I guess).
In either case: run php -i and see the actual live values from Xdebug section: what value that option has.

BundleException by Apache Karaf 4.2.6 with Java 12

Apache Karaf 4.2.6 launched with JDK 11 or 12 throws an exception while starting and stop. I need at least JDK 11 because I have an application written in JDK 11 using the Websocket class available since JDK 11.
org.osgi.framework.BundleException: Exported package names cannot be zero length.
at org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExportClauses(ManifestParser.java:876)
at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:215)
at org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:261)
at org.apache.felix.framework.Felix.<init>(Felix.java:429)
at org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
at org.apache.karaf.main.Main.launch(Main.java:256)
at org.apache.karaf.main.Main.main(Main.java:178)

How do I fix the controlsfx demo program to initialize class org.controlsfx.glyphfont.FontAwesome?

The controlsfx JavaFX library has a demo program and some controls fail to run, such as List Selection View, or List Action View or BreadCrumbBar.
I re-tested this on a new Windows 10 PC, with JDK11 and Gradle 5.5 freshly installed. I downloaded the branch 9 .zip, verified that the module-info.java files are present, and entered
gradlew run
For the above mentioned examples, the console shows:
Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: Could not initialize class org.controlsfx.glyphfont.FontAwesome
at org.controlsfx.samples/org.controlsfx.samples.HelloListActionView.createActions(HelloListActionView.java:144)
at org.controlsfx.samples/org.controlsfx.samples.HelloListActionView.getPanel(HelloListActionView.java:63)
at org.controlsfx.fxsampler/fxsampler.SampleBase.buildSample(SampleBase.java:77)
at org.controlsfx.fxsampler/fxsampler.FXSampler.buildSampleTabContent(FXSampler.java:397)
at org.controlsfx.fxsampler/fxsampler.FXSampler.updateTab(FXSampler.java:305)
at org.controlsfx.fxsampler/fxsampler.FXSampler.changeSample(FXSampler.java:296)
at org.controlsfx.fxsampler/fxsampler.FXSampler.lambda$start$1(FXSampler.java:159)
JAVA_HOME is C:\Program Files\Java\jdk-11.0.3
gradle --version
------------------------------------------------------------
Gradle 5.5
------------------------------------------------------------
Build time: 2019-06-28 17:36:05 UTC
Revision: 83820928f3ada1a3a1dbd9a6c0d47eb3f199378f
Kotlin: 1.3.31
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.14 compiled on March 12 2019
JVM: 11.0.3 (Oracle Corporation 11.0.3+12-LTS)
OS: Windows 10 10.0 amd64
I'd like to take advantage of FontAwesome as well as the above mentioned controls.
I experimented with
JDK 11, 11.0.1, 11.0.2, 11.0.2
Gradle 5.2, 5.5
Command line
IntelliJ
Another PC I usually develop on
ControlsFX has a large number of external dependencies which are handled in the build.gradle file.
If your project does not use gradle to build the library, but instead it imports a .jar of it, then you should add all those options to the VM. To do that in IntelliJ, go to Edit Configuration, there you can find a VM options field.
You can try to copy and paste these options:
--add-exports=javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls --add-exports=javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls --add-exports=javafx.graphics/com.sun.javafx.css=org.controlsfx.controls --add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls --add-exports=javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls --add-exports=javafx.controls/com.sun.javafx.scene.control.inputmap=org.controlsfx.controls --add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls --add-exports=javafx.base/com.sun.javafx.collections=org.controlsfx.controls --add-exports=javafx.base/com.sun.javafx.runtime=org.controlsfx.controls --add-exports=javafx.web/com.sun.webkit=org.controlsfx.controls --add-exports=javafx.graphics/com.sun.javafx.css=org.controlsfx.controls
This worked for me. I was facing the same issue with ControlsFX 11.0, while using ListSelectionView.

Resources