Install Cloud Foundry CLI in a M1 chip MacBook - cloud-foundry

tl;dr The Cloud Foundry CLI fails to install in an M1 chip MacBook Pro.
Following the official instructions, using Homebrew in the command:
$ brew install cloudfoundry/tap/cf-cli#8
The output is:
cf-cli#8: The x86_64 architecture is required for this software.
Error: cf-cli#8: An unsatisfied requirement failed this build.
Found no binary for the ARM-based architecture of the Apple M1 chip. The same trying with cf-cli#7, or just cf-cli.
How can the Cloud Foundry CLI be installed in an ARM-based architecture?

The official GitHub project cloudfoundry/cli includes binaries for many architectures, including ARM-based.
Search in the official Releases page, Assets section, and download the binary of the item named cf-cli_osx_arm (currently v8.3.0). Once downloaded, move/rename to any folder included in your PATH environment variable.

With the release of v8.4.0 a few days ago the support for ARM based mac OS machines (e.g. M1) was added:
https://github.com/cloudfoundry/homebrew-tap/commit/69f268f18ea10a4c8e19c99a8bb209c1ebbcbe7d
It will still fail if you only tap it and leave out the version in your install command, so you'll need to enter:
brew install cloudfoundry/tap/cf-cli#8

There's an open issue for this.
Until the official tap supports the osx_arm binary, you can use this unofficial tap which is manually updated:
brew install wanddynosios/tap/cf-cli
That said, it seems like the official CloudFoundry maintainers are about to support this officially soon.

Related

how can I add software pre-requisites to cloud foundry nodejs

I am using Cloud Foundry's nodejs profile and my nodejs package.json requires chartjs-node-canvas. That package uses node-canvas and node-canvas is based on Cairo. The node-canvas site says I have to add the cairo-devel package to Linux (apt-get) in order for canvas to be installed.
Is it possible to add software to the OS image running on cloud foundry? If so, how?
You can do that by vendoring the dependencies. When you vendor them, you'll build locally in an Ubuntu Bionic Linux container or VM. Node will build everything that's required and you will no longer need the cairo-devel package (it's only needed to build).
The process to vendor dependencies is documented here.
The other option is to use the Apt Buildpack which is described on this SO post. That can be used to install any apt packages.

How to obtain WSO2 docker-compose distribution from a previous release

When you are going to download a distribution of WSO2 product, for the lastest release is possible to download different distributions (binary, msi installer, docker, docker-compose, helm, kubernetes, etc.) but when you try to do it from a previous release, there is only binary and OS's installers (ubuntu, mac, windows, etc).
But I would like to download, for instance docker-compose distribution for the previous version.
How then can it be possible to do?
This images show it clearly:
You can get these artifacts from the docker-apim repo. https://github.com/wso2/docker-apim/tree/v3.1.0.3
I have checked that the URL generated for the latest version can be modified and can be selected other previous versions. For instance, for downloading AM version 3.1.0, previous to the latest release (v 3.2.0), can be downloaded for docker compose in this manner:
http://product-dist.wso2.com/downloads/api-manager/3.1.0/instruction-pages/subscription/docker-compose/docker-apim-3.1.0.zip
WSO2 should leave available all these links explicitly referred to in the previous versions.

C++ on Jupyter Notebook for Windows

Has anyone successfully installed and used C++ on Jupyter Notebook on a windows machine? The installation instruction here never worked for me.
conda install -c conda-forge xeus-cling
gives me
"PackagesNotFoundError: The following packages are not available from current channels:"
If anyone has succeeded in installing on Windows, could you please share your instructions? Thanks.
The "issue" is that conda-forge/xeus-cling isn't available for Windows (yet?) (as indicated on this page of conda-forge/xeus-cling on anaconda.org). You can instead use gouarin/xeus-cling (you still have to have the compatible environment, though). Of course, the online C++ Jupyter Notebook is available too.

Is there any well documented Redmine installation process

is there any well documented step by step procedure to install redmine?. I tried to install it on my Ubuntu machine.But i am unable to access it from another machine. please tell me how to it. is there any document which show how to host as centralized
See this guide: http://www.redmine.org/projects/redmine/wiki/redmineinstall. Its a general installation guide. I used it to install Redmine on Debian Jessie.

aapt missing MACOS Use the `android' tool to install the "Android SDK Platform-tools"

aapt missing MACOS Use the `android' tool to install the "Android SDK Platform-tools".
i have already use android download times.
but i can't find any usefully aapt file
only link to /usr/local/Cellar/android-sdk/r22.0.1/platform-tools/aapt
but under /usr/local/Cellar/android-sdk/r22.0.1/platform-tools/ only adb
the "aapt" tool was moved to the Build Tools folder. Run "android" and make sure you install the build tools (18.1 is currently the latest one).
also see this other post:
Android Maven Could not find tool 'aapt'
Run the android command and ensure that the SDK tools for your target platform are up to date. It is possible that you updated the SDK but not the build tools.
Hope that helps.
The android tools from brew expect version 17 of the SDK Build-tools to be installed.
I had a similar problem recently and found it to be an error with my HomeBrew setup. I think HomeBrew was expecting a particular version of the build tools that I didn't have.
I found that updating HomeBrew
brew update
gave me a new error which was much more informative:
It appears you do not have 'build-tools-19.0.3' installed.
Use the 'android' tool to install them:
android update sdk --no-ui --filter 'build-tools-19.0.3'
Unfortunately the filter in the suggested command didn't work but I found I could install it manually through the UI by running the android tool and selecting the version HomeBrew was expecting.
See https://stackoverflow.com/a/16585846/440362 for correct answer. The file's directory has changed from tools to build-tools/