I am trying out the IBM BLockchain Extension for VSCode and going through the tutorial. I am able to create a smart contract project, add a workplace, and create a smart contract package. At the local fabric ops part - When I click start local fabric runtime I get an error:
[5/19/2019 10:17:44 AM] [INFO] startFabricRuntime [5/19/2019 10:17:44
AM] [INFO] 'generate.cmd' is not recognized as an internal or external
command, [5/19/2019 10:17:44 AM] [INFO] operable program or batch
file.
I am using:
VSCode
Windows 10 Enterprise
Docker Desktop for Windows
Uninstall ibm blockchain extension from extension
Delete runtime folder from vscode directory.
You can find vscode directory in home directory
path to runtime package
$ cd .fabric-vscode
$ ls
local_fabric_wallet packages runtime
$ rm packages
Reinstall the ibm blockchain extension in vscode
Related
So I have a docker with CentOS 7 which has installed bazel.
I've installed devtoolset-8, llvm-toolset-7.0 and centos-release-scl.
I've also installed bazel 0.29.1 and made.
export CC=clang
export CXX=clang++
I have an shell script which run basel. Befor bazel build command in top of the script I have
source /opt/rh/llvm-toolset-7.0/enable
which enables LLVM-7.0/Clang-7.0. But build failes with:
/opt/rh/llvm-toolset-7.0/root/usr/bin/clang: error while loading
shared libraries: libLLVM-7.so: cannot open shared object file: No
such file or directory
But this lib exists! It's in /opt/rh/llvm-toolset-7.0/root/usr/lib64/
May someone pls help with this ?
Add below to .bash_profile or .bashrc:
source /opt/rh/llvm-toolset-7.0/enable
export CC=/opt/rh/llvm-toolset-7.0/root/usr/bin/clang
export CXX=/opt/rh/llvm-toolset-7.0/root/usr/bin/clang++
Run below as Root
echo /opt/rh/llvm-toolset-7.0/root/usr/lib64/ > /etc/ld.so.conf.d/llvm-toolset.conf
ldconfig
I'm trying to build a project that I have imported into eclipse.
I ran mvn clean which ran fine.
Running mvn install gives me the following error:
[WARNING] 'rpmbuild' is not recognized as an internal or external command,
[WARNING] operable program or batch file.
Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.0-beta-2:rpm (default)
on project fusion-restful: RPM build execution returned: '1' executing 'cmd.exe /X /C
"rpmbuild -bb --buildroot C:\Users\kb60500\fusion-portal\fusion-restful\target\rpm\buildroot
--define "_topdir C:\Users\kb60500\fusion-portal\fusion-restful\target\rpm" --target noarch fusion-restful.spec"' -> [Help 1]
rpmbuild is a linux specific tool that is not available for windows by default. this tool is executed by the plugin. You can use cygwin to run it on windows but I would think the best results are created using a linux system to execute your build. There is a blog post about this (older but still looks correct).
Ubuntu 18.04 ARM64
I have download and built vscode and this appears to be working.
I can see the extension market place and install extensions. The C/C++ IntelliSense, debugging, and code browsing install but gets a dependency install failure sometimes:
Updating C/C++ dependencies...
Downloading package 'Mono Framework Assemblies' (5368 KB) Done!
Installing package 'Mono Framework Assemblies'
Failed at stage: installPackages
Error: end of central directory record signature not found
It seems to succeed on the second attempt but I'm not convinced.
So I have cloned vscode-cpptools and would like to built it myself but I'm not sure what dependencies it has or how to build it correctly.
Any tips appreciated!
So following the build and debug guide at:
$ git clone -b release https://github.com/Microsoft/vscode-cpptools
$ cd vscode-cpptools/Extension
$ npm install ! should install all dependencies but it forgets gulp
$ npm install gulp ! Manually install. I wonder what else it forgets
$ vsce package ! Should trigger the build and make the vsix package.
So the package is created and when I try and install it via the vscode extensions I get
Unable to start the C/C++ language server. IntelliSense features will be disabled. Error: Missing binary at ~/.vscode-oss-dev/extensions/ms-vscode.cpptools-0.22.1/bin/Microsoft.VSCode.CPP.Extension.linux.
Me thinks there are a lot of other dependencies that are missing!!!
Looking in the Extension bin folder and two important binaries are missing:
Microsoft.VSCode.CPP.Extension.linux
Microsoft.VSCode.CPP.IntelliSense.Msvc.linux
I also tried this on Intel Ubuntu 18.04 and while the Intel build appeared to do a whole lot more it also fails to build the binaries.
Found the answer in here : github.com/Microsoft/vscode-cpptools/issues/429 which indicates there is no support for Aaarch64 Arm64 at this point in time.
I am following the instructions to install IBM Cloud CLI on a Windows 10 virtual machine found here https://console.bluemix.net/docs/cli/index.html#overview and I am coming across this error on Step 1. I am unsure why it is looking for a config.json file on my H drive and the ibm cloud install fails because of the error. It also states "ibmcloud already installed" probably due to multiple attempts to install but they all fail. I try to confirm the installation with "Ibmcloud dev help" after a reboot of the machine but get the same error.
Has anyone come across this?
Steps I am taking:
I am using a Windows 10 Enterprise virtual machine and I am an administrator. I also ran PowerShell as an administrator.
Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.
PS C:\> Set-ExecutionPolicy Unrestricted; iex(New-Object Net.WebClient).DownloadString('http://ibm.biz/idt-win-installer
')
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
[main] --==[ IBM Cloud Developer Tools - Installer for Windows, v1.2.0 ]==--
[install] Starting Installation/Update...
[install_deps] Checking for external dependency: git
[install_deps] Checking for external dependency: docker
[install_deps] Installing/updating external dependency: docker
[install_deps] Install/update completed for: docker
[install_deps] Checking for external dependency: kubectl
[install_deps] Checking for external dependency: helm
ibmcloud already installed
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_bx] IBM Cloud CLI version:
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Installing/updating IBM Cloud CLI plugins used by IDT...
[install_plugins] Checking status of plugin: Cloud-Functions
[install_plugins] Installing plugin 'Cloud-Functions'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Checking status of plugin: container-registry
[install_plugins] Installing plugin 'container-registry'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Checking status of plugin: container-service
[install_plugins] Installing plugin 'container-service'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Checking status of plugin: dev
[install_plugins] Installing plugin 'dev'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Checking status of plugin: sdk-gen
[install_plugins] Installing plugin 'sdk-gen'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Running 'ibmcloud plugin list'...
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Finished installing/updating plugins
Creating 'idt' script to act as shortcut to 'bx dev' command...
Out-File : Illegal characters in path.
At line:325 char:29
+ Write-Output $idt_batch | Out-File -Encoding ascii $idt_command
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], ArgumentException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
[install] Install finished.
[quit] --==[ Finished. Total time: 00:00:04 seconds ]==--
A system restart is required. Would you like to restart now (y/N)?:y
I reboot and then “Verify the installation”
Ibmcloud dev help
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
I had the same problem, insanely annoying!
Just run:
C:\Users\MyUser> $env:HOMEDRIVE="c:"
C:\Users\MyUser> $env:HOMEPATH="\Users\MyUser"
The run the IBM commands. You have to run the setting in each new console!
I had this problem and was able to fix it by setting env variable IBMCLOUD_HOME to the directory I installed ibm cloud cli to.
Check the user home directory of your Win10 VM. IBM cloud CLI keeps some configuration files under ~/.bluemix.
From the error message, H:\ was treated as the user home, which seems abnormal since normally user home is not the root folder.
I am developing the install4j generated installers for Openfire. I am using Install4J 7.0.6.
I can not resolve how to tell install4j to install a file into /etc/sysconfig, here's a screenshot of my Files screen. The installation directory resolves to /opt/openfire
When I build the media, I get this warning:
[INFO] Creating media file 'Linux i686 RPM':
[INFO] Collecting files:
[INFO] [WARNING] External roots cannot be included in an archive media set. Skipping these entries.
and the generated RPM file has no references to /etc/
# rpm -qlp openfire-4_3_0-SNAPSHOT-1_i686.rpm | grep etc
#
Thanks!
As of install4j 7.x, this is unfortunately not supported, the RPM can only contain files that are installed into the installation directory.