I have tried to add the CPLEX to Julia but it didn't work, can anyone help me to figure out what is the issue. the version of Julia and CPLEX are 1.4.2 and 12.10.
julia> Pkg.build("CPLEX")
Building CPLEX → `C:\Users\Asus\.julia\packages\CPLEX\rmvSt\deps\build.log`
┌ Error: Error building `CPLEX`:
│ INFO: Could not find files for the given pattern(s).
│ ERROR: LoadError: Unable to install CPLEX.jl.
│
│ The versions of CPLEX supported by CPLEX.jl are:
│
│ * 12.10
│ * 20.1
│
│ You must download and install one of these versions separately.
│
│ You should set the `CPLEX_STUDIO_BINARIES` environment variable to point to
│ the install location then try again. For example (updating the path to the
│ correct location if needed):
│
│ ```
│ ENV["CPLEX_STUDIO_BINARIES"] = "C:\\Program Files\\IBM\\ILOG\\CPLEX_Studio201\\cplex\\bin\\x64_win64\\"
│ import Pkg
│ Pkg.add("CPLEX")
│ Pkg.build("CPLEX")
│ ```
│
│ See the CPLEX.jl README at https://github.com/jump-dev/CPLEX.jl for further
│ instructions.
│
│ Stacktrace:
│ [1] error(::String) at .\error.jl:33
│ [2] try_local_installation() at C:\Users\Asus\.julia\packages\CPLEX\rmvSt\deps\build.jl:112
│ [3] top-level scope at C:\Users\Asus\.julia\packages\CPLEX\rmvSt\deps\build.jl:130
│ [4] include(::String) at .\client.jl:439
│ [5] top-level scope at none:5
│ in expression starting at C:\Users\Asus\.julia\packages\CPLEX\rmvSt\deps\build.jl:123
└ # Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:899
julia>
a) Do not use Julia 1.4.2. Please update to the latest Julia version (1.6.3) or use the Long-Term-Support (Julia 1.0).
b) Follow the installation instructions: https://github.com/jump-dev/CPLEX.jl#installation
c) If you have CPLEX 12.10 installed, The path won't be CPLEX_Studio201, but something like CPLEX_Studio_1210
I'm following the Quickstart for Mac OS X to install the cloud SDK. Following the steps exactly,
1) python -V returns "Python 2.7.10"
2) Download and extract using ./install.sh the 64bit version of the SDK in google-cloud-sdk returns...
Welcome to the Google Cloud SDK!
To help improve the quality of this product, we collect anonymized usage data
and anonymized stacktraces when crashes are encountered; additional information
is available at <https://cloud.google.com/sdk/usage-statistics>. You may choose
to opt out of this collection now (by choosing 'N' at the below prompt), or at
any time in the future by running the following command:
gcloud config set disable_usage_reporting true
Do you want to help improve the Google Cloud SDK (Y/n)? Y
Your current Cloud SDK version is: 170.0.1
The latest available version is: 170.0.1
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Components │
├───────────────┬──────────────────────────────────────────────────────┬──────────────────────────┬───────────┤
│ Status │ Name │ ID │ Size │
├───────────────┼──────────────────────────────────────────────────────┼──────────────────────────┼───────────┤
│ Not Installed │ App Engine Go Extensions │ app-engine-go │ 97.7 MiB │
│ Not Installed │ Cloud Bigtable Command Line Tool │ cbt │ 4.0 MiB │
│ Not Installed │ Cloud Bigtable Emulator │ bigtable │ 3.5 MiB │
│ Not Installed │ Cloud Datalab Command Line Tool │ datalab │ < 1 MiB │
│ Not Installed │ Cloud Datastore Emulator │ cloud-datastore-emulator │ 15.4 MiB │
│ Not Installed │ Cloud Datastore Emulator (Legacy) │ gcd-emulator │ 38.1 MiB │
│ Not Installed │ Cloud Pub/Sub Emulator │ pubsub-emulator │ 33.2 MiB │
│ Not Installed │ Emulator Reverse Proxy │ emulator-reverse-proxy │ 14.5 MiB │
│ Not Installed │ Google Container Local Builder │ container-builder-local │ 3.7 MiB │
│ Not Installed │ Google Container Registry's Docker credential helper │ docker-credential-gcr │ 2.2 MiB │
│ Not Installed │ gcloud Alpha Commands │ alpha │ < 1 MiB │
│ Not Installed │ gcloud Beta Commands │ beta │ < 1 MiB │
│ Not Installed │ gcloud app Java Extensions │ app-engine-java │ 128.1 MiB │
│ Not Installed │ gcloud app PHP Extensions (Mac OS X) │ app-engine-php-darwin │ 21.9 MiB │
│ Not Installed │ gcloud app Python Extensions │ app-engine-python │ 6.5 MiB │
│ Not Installed │ kubectl │ kubectl │ 15.9 MiB │
│ Installed │ BigQuery Command Line Tool │ bq │ < 1 MiB │
│ Installed │ Cloud SDK Core Libraries │ core │ 6.7 MiB │
│ Installed │ Cloud Storage Command Line Tool │ gsutil │ 3.0 MiB │
└───────────────┴──────────────────────────────────────────────────────┴──────────────────────────┴───────────┘
To install or remove components at your current SDK version [170.0.1], run:
$ gcloud components install COMPONENT_ID
$ gcloud components remove COMPONENT_ID
To update your SDK installation to the latest version [170.0.1], run:
$ gcloud components update
==> Source [/Users/shaneoseasnain/Desktop/google-cloud-sdk/completion.bash.inc] in your profile to enable shell command completion for gcloud.
==> Source [/Users/shaneoseasnain/Desktop/google-cloud-sdk/path.bash.inc] in your profile to add the Google Cloud SDK command line tools to your $PATH.
For more information on how to get started, please visit:
https://cloud.google.com/sdk/docs/quickstarts
3) I've restarted the terminal and run gcloud init from inside google-cloud-sdk. This returns "command not found." If I run ls, I see the following directory structure:
LICENSE completion.zsh.inc path.fish.inc
README deb path.zsh.inc
RELEASE_NOTES install.bat platform
VERSION install.sh properties
bin lib rpm
completion.bash.inc path.bash.inc
4) I've tried to run gcloud init inside bin as well, but get the same problem, command not found.
The only other suggestions I can see from the install guide are "enable command-completion in your bash shell, and/or enable usage reporting." I'm not sure how to do this but command completion and reporting don't look like they should be related to this problem. There is a lot written about command not found but they relate to other problems where, for example, gcloud has stopped working after a while or problems in older versions. Has anyone a tip how to get the cloud sdk working?
Thanks
I had the same issue. A lazy and quick fix for this is to just run:
brew install --cask google-cloud-sdk
Found by googling.
For MAC OS - Use Homebrew
brew install --cask google-cloud-sdk
and then use
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
The gcloud executable lives in google-cloud-sdk/bin–to run gcloud. You'll need to either:
Add this directory to your $PATH. In particular, adding the line source /Users/shaneoseasnain/Desktop/google-cloud-sdk/path.bash.inc to your .bash_profile file (more detail on what this file does and how to pick one) will do the trick.
Specify the full path to the gcloud executable when you run it. In your case, this is /Users/shaneoseasnain/Desktop/google-cloud-sdk/bin/gcloud. So for example:
$ /Users/shaneoseasnain/Desktop/google-cloud-sdk/bin/gcloud init
The pertinent part of the quickstart (emphasis added):
Run the install script to add Cloud SDK tools to your path, enable command-completion in your bash shell, and/or enable usage reporting:
As to why the install script didn't work, I can't say. Please file an issue and we'll investigate.
Here's on macOS. I had the same problem. I got
gcloud: command not found
After running brew install --cask google-cloud-sdk, I found that I have to install it manually.
First, you will find install.sh under directory google-cloud-sdk, and you will run
.../google-cloud-sdk/install.sh
under the terminal. For my case,
the file is under
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk
Second, run /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/install.sh
Third, there will be a message guide you to relaunch your terminal owing to your bash file or zsh file updated.
Fourth, gcloud -v to test if gcloud-cli work normally after you launch a new terminal.
In short:
emacs -nw ~/.zshrc
And add following line at the beginning:
# The next line updates PATH for the Google Cloud SDK.
source '/home/lesaint/GOOGLE_CLOUD/google-cloud-sdk/path.zsh.inc'
# The next lines enables bash completion in Zsh for gcloud.
autoload -U compinit compdef
compinit
source '/home/lesaint/GOOGLE_CLOUD/google-cloud-sdk/completion.zsh.inc'
The solution proposed by following article works for me:
http://www.javatronic.fr/tips/2014/10/17/installing_google_cloud_sdk_on_ubuntu_with_oh-my-zsh.html
TL;DR - follow the Interactive installer section of Installing Cloud SDK and the SDK will install correctly.
However, there is a real issue here which I believe is related to missing environment variables:
At first, I followed Quickstart for Mac OS X as well in order to install the Google Cloud SDK for the 'Mac OS X (x86_64) Platform'. This reproduced the exact same results as Shane outlined in his question above. Here are some more details:
Clean install of macOS Sierra 10.12.6 (latest) on a 2017 MacBook Pro.
Google Cloud SDK version 173.0.0. Specifically: google-cloud-sdk-173.0.0-darwin-x86_64.tar.gz which is the latest at the time of this writing and the one pointed to by the quickstart guide.
I was able to further pinpoint the problem in step 4 of the 'Before you begin' section of Quick Start for Mac OS X:
Set up the Cloud SDK for use. If you're having trouble getting the gcloud command to work, ensure your $PATH is defined appropriately. Run the install script to add Cloud SDK tools to your path, enable command-completion in your bash shell, and/or enable usage reporting:
./google-cloud-sdk/install.sh
'install.sh' invokes 'install.py' which at some point calls isatty() in order to find out whether the installation process was run from the shell which means it should be interactive and prompt the user for some information. For some reason, isatty() returns False instead of True! This causes to script to fall through non-interactively and - because 'install.sh' was invoked without arguments - Fail.
The following worked for me:
I moved the installer unzipped package to the ~ directory.
And then after running ./google-cloud-sdk/install.sh
I restarted the terminal again and ran 'gcloud init' and it worked.
Sometimes, after installation, you need just restart your terminal. that's it :)
take a look at here: Quickstart for macOS
for me that was the fix:
mkdir -p $sdk_dir/.install/
tl;dr;
It seems that the python library is locating the sdk_root by searching for an .install directory. See the config.py and the definition of CLOUDSDK_STATE_DIR
It seems like your google-cloud-sdk/bin does not appear in PATH.
copy your current PATH from:
echo $PATH
Now add your google-cloud-sdk/bin absolute path to PATH, don't forget to add a colon - ':', before you add your new path, it should be something like this:
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/Users/user/google-cloud-sdk/bin
I ran the install and init command from the folder, i kept downloaded SDK.
One it installed and initialized, i ran the command with folder name and it worked after that.
i ran below command from directory where i kept SDK-
./google-cloud-sdk/bin/gcloud
Follow these steps:
Press Command+Space and type Terminal and press enter/return key.
Run in Terminal app:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null
If the screen prompts you to enter a password, please enter your Mac's user password to continue. When you type the password, it won't be displayed on the screen, but the system would accept it. So just type your password and press ENTER/RETURN key. Then wait for the command to finish.
Run
brew cask install google-cloud-sdk
Reference:
http://macappstore.org/google-cloud-sdk/
I recently updated all my tns deps:
karlis#karlis-SATELLITE-L750 ~/Projects/my-instagram/test $ tns info
All NativeScript components versions information
┌──────────────────┬─────────────────┬────────────────┬─────────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 2.3.0 │ 2.3.0 │ Up to date │
│ tns-core-modules │ 2.3.0 │ 2.3.0 │ Up to date │
│ tns-android │ 2.3.0 │ 2.3.0 │ Up to date │
│ tns-ios │ 2.3.0 │ 2.3.0 │ Up to date │
When i change something in code and save, this shows up in console. However nothing changes in the app( closing and opening the app doesn't help too ):
4:42:18 PM - File change detected. Starting incremental compilation...
4:42:22 PM - Compilation complete. Watching for file changes.
Executing before-prepare hook from /home/karlis/Projects/my-instagram/test/hooks/before-prepare/nativescript-dev-typescript.js
Project successfully prepared (android)
Transferring project files...
Successfully transferred all files.
Applying changes...
Successfully synced application org.nativescript.test on device 3d828389.
Each time i run the command tns livesync android --watch --device=3d828389 i get the full app reinstall and message showing: The application with id "org.nativescript.test" is not installed on device with identifier 3d828389. However the app IS installed on the phone.
Discuss.
The problem was in my app/App_Resources/android/Manifest and gradle.
I changed them to original ones and it worked.
I'm running into a problem with accessing Yeoman after installing it on a fresh Homestead installation. Everything seems fine during the install after npm install -g yo and yo doctor runs just fine and finds no problem during the installation. However, after I've installed yeoman, yo: command not found is the error message I'm getting on my VM.
vagrant#homestead:~$ npm install -g yo
npm WARN deprecated npmconf#2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/home/vagrant/.node/bin/yo -> /home/vagrant/.node/lib/node_modules/yo/lib/cli.js
/home/vagrant/.node/bin/yo-complete -> /home/vagrant/.node/lib/node_modules/yo/lib/completion/index.js
> spawn-sync#1.0.15 postinstall /home/vagrant/.node/lib/node_modules/yo/node_modules/spawn-sync
> node postinstall
> yo#1.8.4 postinstall /home/vagrant/.node/lib/node_modules/yo
> yodoctor
Yeoman Doctor
Running sanity checks on your system
✔ Global configuration file is valid
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version
✔ NODE_PATH matches the npm root
Everything looks all right!
/home/vagrant/.node/lib
└─┬ yo#1.8.4
├── async#1.5.2
├─┬ chalk#1.1.3
│ ├── ansi-styles#2.2.1
│ ├── escape-string-regexp#1.0.5
│ ├── has-ansi#2.0.0
│ ├── strip-ansi#3.0.1
│ └── supports-color#2.0.0
├── cli-list#0.1.8
[[REMOVED FOR READABILITY]]
└─┬ yosay#1.2.0
├── cli-boxes#1.0.0
├── pad-component#0.0.1
├─┬ taketalk#1.0.0
│ ├── get-stdin#4.0.1
│ └── minimist#1.2.0
└── wrap-ansi#2.0.0
vagrant#homestead:~$ yo
yo: command not found
My path in ~/.bashrc says the following: PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/home/vagrant/.node/lib
Is there anything else that I'm missing here that might be causing this?
Add /home/vagrant/.node/bin to your path. :)
When I run react-native init application-name, no XCode project gets generated.
The node_modules dir and package.json file is generated and npm install is run, but immediately after the 'npm dependency graph' is printed, it stops.
The last line of output is rbenv: no such commandexec'`, which seems rather strange as this has nothing to do with rbenv/Ruby.
Full log output:
👉 react-native init ReactiveNews
This will walk you through creating a new React Native project in /Users/taylor/Git/ReactiveNews
npm WARN engine makeerror#1.0.10: wanted: {"node":"0.6.x"} (current: {"node":"0.10.38","npm":"1.4.28"})
> ws#0.4.31 install /Users/taylor/Git/ReactiveNews/node_modules/react-native/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/bufferutil.node
SOLINK_MODULE(target) Release/bufferutil.node: Finished
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node
SOLINK_MODULE(target) Release/validation.node: Finished
npm WARN engine tmpl#1.0.3: wanted: {"node":"0.6.x"} (current: {"node":"0.10.38","npm":"1.4.28"})
react-native#0.2.1 node_modules/react-native
├── absolute-path#0.0.0
├── stacktrace-parser#0.1.1
├── react-timer-mixin#0.13.1
├── underscore#1.7.0
├── q#1.0.1
├── yargs#1.3.2
├── debug#2.1.3 (ms#0.7.0)
├── source-map#0.1.31 (amdefine#0.1.0)
├── optimist#0.6.1 (wordwrap#0.0.2, minimist#0.0.10)
├── worker-farm#1.1.0 (xtend#4.0.0, errno#0.1.2)
├── rebound#0.0.12
├── sane#1.0.1 (watch#0.10.0, fb-watchman#0.0.0, minimatch#0.2.14, walker#1.0.6)
├── uglify-js#2.4.17 (uglify-to-browserify#1.0.2, async#0.2.10, yargs#1.3.3, source-map#0.1.34)
├── jstransform#10.0.1 (base62#0.1.1, esprima-fb#13001.1.0-dev-harmony-fb)
├── joi#5.1.0 (topo#1.0.2, isemail#1.1.1, hoek#2.12.0, moment#2.9.0)
├── connect#2.8.3 (uid2#0.0.2, methods#0.0.1, fresh#0.1.0, pause#0.0.1, cookie-signature#1.0.1, buffer-crc32#0.2.1, qs#0.6.5, bytes#0.2.0, cookie#0.1.0, formidable#1.0.14, send#0.1.2)
├── module-deps#3.5.6 (inherits#2.0.1, shallow-copy#0.0.1, minimist#0.2.0, subarg#0.0.1, stream-combiner2#1.0.2, parents#1.0.1, readable-stream#1.0.33, resolve#0.7.4, through2#0.4.2, duplexer2#0.0.2, concat-stream#1.4.7, browser-resolve#1.8.1, JSONStream#0.7.4, detective#3.1.0)
├── react-tools#0.13.0-rc2 (commoner#0.10.1)
└── ws#0.4.31 (tinycolor#0.0.1, options#0.0.6, commander#0.6.1, nan#0.3.2)
rbenv: no such command `exec'
The issue was with the init.sh script under node_modules/react-native, rbenv threw the rbenv: no such command `exec' every time it was executed. I first solved it by running it directly through rbenv with rbenv exec but was able to solve the issue entirely by turning the rbenv bundler plugin off and on again.