Error installing jdk using Chocolatey on Win10 - java-8

I have a fresh Windows 10 installation and tried to install jdk package using Chocolatey:
choco install jdk -y
from an elevated command shell.
Unfortunately installation fails with output:
Installing the following packages:
jdk
By installing you accept licenses for the packages.
jdk8 v8.0.66
Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8u66-b18/jdk-8u66-windows-x64.exe
Installing jdk8...
[ERROR] Running C:\ProgramData\chocolatey\lib\jdk8\tools\jdk-8u66-windows-x64.exe with /s ADDLO
CAL="ToolsFeature,SourceFeature,PublicjreFeature" was not successful. Exit code was '1603' Err
or Message:
.
At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1:92 char:5
+ throw $errorMessage
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: ([ERROR] Running...or Message:
.:String) [], RuntimeException
+ FullyQualifiedErrorId : [ERROR] Running C:\ProgramData\chocolatey\lib\jdk8\tools\jdk-8u6
6-windows-x64.exe with /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature" was not
successful. Exit code was '1603' Error Message:
.
The install of jdk8 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\jdk8\tools\chocolateyInstall.ps1'.
See log for details.
jdk v8.0
The install of jdk was successful.
Chocolatey installed 1/2 package(s). 1 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
- jdk8
Chocolatey log on pastebin: http://pastebin.com/raw/6yRhQR9Z

The issue was related to insufficient disk space. After cleanup and freeing up some space the problem has gone and the installation succeeded.

Related

installing eth-brownie with pipx

I have been attempting to install Brownie via pipx in a Powershell terminal in VSCode (https://eth-brownie.readthedocs.io/en/stable/install.html). As in the link I attempted the first two commands after which the system gave me confirmation that pipx had been added to PATH:
python -m pip install --user pipx
python -m pipx ensurepath
...
C:\Users\Name\AppData\Roaming\Python\Python310\Scripts has been been added to PATH, but you need to open a new terminal or re-login for this PATH change to
take effect.
C:\Users\Name\.local\bin has been been added to PATH, but you need to open a new terminal or re-login for this PATH change to take effect.
You will need to open a new terminal or re-login for the PATH changes to take effect.
Otherwise pipx is ready to go! ✨ 🌟 ✨
Upon loading a new Powershell, I tried the final command as in the link, but instead got the error immediately below:
pipx install eth-brownie
...
pipx : The term 'pipx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ pipx install eth-brownie
+ ~~~~
+ CategoryInfo : ObjectNotFound: (pipx:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Why is pipx not being recognized as a command if the output claimed it is accessible on PATH? In any case, I then tried modifying the command to include python -m at the start. My understanding is that this goes to my python program first, then accesses anything to do with pipx? It ran for a few seconds before printing a different error:
python -m pipx install eth-brownie
...
Fatal error from pip prevented installation. Full pip output in file:
C:\Users\Name\.local\pipx\logs\cmd_2022-01-05_20.58.07_pip_errors.log
pip failed to build package:
cytoolz
Some possibly relevant errors from pip install:
build\lib.win-amd64-3.10\cytoolz\functoolz.cp310-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120
Error installing eth-brownie.
I am at a loss on this error. My instinct tells me there is something wrong with my Microsoft Build Tools that I downloaded from: https://visualstudio.microsoft.com/visual-cpp-build-tools/Code . But if I can resolve the first issue perhaps this is redundant.
Make sure you have installed "pipx" from python3
if it is not installed, run
python3 -m pip install --user pipx
Or check env see if it is installed path
I also had the same error before, I tried with another environment from python
py -m pip install --user -U pipx
Best way to test pipx, checkin to directory :
C:\Users\...\.local
Add env
enter image description here
You will need to open a new terminal or re-login for the PATH changes to take effect.
Otherwise pipx is ready to go
I restarted my machine and was able to recognize pipx at least, but upon using "pipx install eth-brownie" I got the same fatal error as at the bottom of my post. I then verified I had cython and cytoolz installed (tried pip install for each and received output stating that the requirement was already satisfied) even though the error stated "pip failed to build package: cytoolz" In the end I found some posts suggesting that pipx only works for Python 3.9. I finally tried a pip install of eth-brownie rather than pipx and that worked.
If anyone knows of any potential pitfalls of a pip rather than pipx installation of eth-brownie I would be glad to hear, but at least it was installed in the end.

Unable to install RJDBC package on RedHat

An open source R package I am planning to use uses RJDBC. When I tried to install RJDBC using
install.packages("RJDBC")
I get an error indicating that rJava is not installed. Tried installing rJava using
install.packages("rJava")
But that resulted in error
checking whether JNI programs can be compiled... configure: error: Cannot compile a simple JNI program. See config.log for details.
Make sure you have Java Development Kit installed and correctly registered in R.
If in doubt, re-run "R CMD javareconf" as root.
ERROR: configuration failed for package ‘rJava’
* removing ‘/home/john/R/x86_64-pc-linux-gnu-library/3.5/rJava’
Warning in install.packages :
installation of package ‘rJava’ had non-zero exit status
The downloaded source packages are in
‘/store/tmp/Rtmp0teUWN/downloaded_packages’
Found this SO question and tired almost all the suggestions without luck.
Logged in as root on the server using sudo su
Ran
R CMD javareconf
echo JAVA_HOME printed empty. So used the value from output of R CMD javareconf
ran R CMD javareconf -ed
then from R console ran
install.packages("rJava")
This seems to have installed the package and I assumed this was done for all users. Restarted R studio server
From a new session in R Studio tried to install RJDBC and got error stating rJava is not installed.
Running R CMD javareconf seems to recognize JAVA home paths but installation of rJava as a non-root user fails.
Highly appreciate any leads.

Build error when installing certain tools on AppVeyor CI via Scoop

I've created the following appveyor.yml file:
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install ruby
which aims at installing Ruby, but the build fails with:
scoop install ruby
Installing 'ruby' (2.5.1-2) [64bit]
Downloading https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.1-2/rubyinstaller-2.5.1-2-x64.7z (8.8 MB)...
Checking hash of rubyinstaller-2.5.1-2-x64.7z... ok.
Extracting... done.
Linking ~\scoop\apps\ruby\current => ~\scoop\apps\ruby\2.5.1-2
Persisting gems
Running post-install script...
Successfully installed rake-12.3.1
Parsing documentation for rake-12.3.1
Installing ri documentation for rake-12.3.1
Done installing documentation for rake after 0 seconds
1 gem installed
'ruby' (2.5.1-2) was installed successfully!
Notes
-----
Install MSYS2 via 'scoop install msys2' and then run 'ridk install' to install the toolchain!
'ruby' suggests installing 'msys2'.
The build phase is set to "MSBuild" mode (default), but no Visual Studio project or solution files were found in the root directory. If you are not building Visual Studio project switch build mode to "Script" and provide your custom build command.
The same issue happens with shellcheck, e.g.
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install shellcheck
test_script:
- shellcheck -V
Please note that I can easily install other tools such as:
scoop install curl grep sed less touch python perl
without any issues (see this build), but it fails on Ruby and ShellCheck.
What am I missing?
Error you describes (The build phase is set to "MSBuild" mode (default)...) has no relation to Scoop or anything which happens at install stage. By default AppVeyor tries to detect Visual Studio solution or project. To disable that behavior you can set build: off or rename test_script: to build_script:.
Here is the working appveyor.yml:
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install ruby shellcheck
build: off
test_script:
- shellcheck -V

Unable to install mesos on centos 6.5

I am trying to install mesos package according to https://open.mesosphere.com/getting-started/install/#slave-setup but, when I run yum install mesos, transaction abort with error message:
Error unpacking rpm package mesos-1.0.1-2.0.93.centos65.x86_64
error: unpacking of archive failed on file /usr/lib/libmesos-1.0.1.so;57c7a348: cpio: read
Failed:
mesos.x86_64 0:1.0.1-2.0.93.centos65
any pointers? or is the packaging of this particular version corrupted?
I tried mesos.x86_64 0:1.0.0-2.0.89.centos65 which seems to be working.
The current mesos 1.x.x RPM installers do not handle upgrades from mesos versions < 1.0 gracefully in CentOS 6.X. A yum update of mesos from 0.28 to 1.1.0 produces the following error:
Running Transaction
Updating : mesos-1.1.0-2.0.107.centos65.x86_64
Error unpacking rpm package mesos-1.1.0-2.0.107.centos65.x86_64
error: unpacking of archive failed on file /usr/include/mesos/slave: cpio: rename
The workaround is to run:
rm -rf /usr/include/mesos/slave
And then re-run yum update (or whatever RPM management command you are using to upgrade mesos).
Source: https://github.com/mesosphere/mesos-deb-packaging/issues/87
[Updated:] A new RPM which fixes this error, 1.0.1-2.0.96, has been generated and is available for download at https://open.mesosphere.com/downloads/mesos/. (Thanks #js84)

pip install cx_Oracle -> failed with exit status 1120

I'm trying to install cx_Oracle, but i've faced with the problem while installing.
I've got an error:
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
build\lib.win-amd64-3.4_mysql.pyd : fatal error LNK1120: 56
unresolved extern als error: command 'c:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\Bin \amd64\link.exe' failed
with exit status 1120
System Info:
Windows 7 x64
Python 3.4.3 x64.
I use the following guide for setup C++ part of installation:
http://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/#id7
I've googled a lot of issues, but i didn't manage to find solution for my own one. Also I've got the same error while installing MySQL-python.
you must install oracle client first
make sure :win7 x64; python x64; oracle client x64
pip install cx_Oracle
Ran into the same issue with the source install, but the binaries got it working for me. Install the binary from http://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_oracle. If you need here is the guide for the pip wheel install: https://pip.pypa.io/en/latest/user_guide/#installing-from-wheels
Try to use this commands in command line.
git clone https://github.com/oracle/python-cx_Oracle.git cx_Oracle
cd cx_Oracle
git submodule init
git submodule update
pip install cx_Oracle
here is a link also: [link to try]

Resources