I'm tryimg to install mongodb-community throgh brew, however, I'm getting the following error:
Error: undefined method name' for nil:NilClass Please report this issue: https://docs.brew.sh/Troubleshooting /usr/local/Homebrew/Library/Homebrew/exceptions.rb:275:in block in initialize'
/usr/local/Homebrew/Library/Homebrew/exceptions.rb:274:in map' /usr/local/Homebrew/Library/Homebrew/exceptions.rb:274:in initialize'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:561:in new' /usr/local/Homebrew/Library/Homebrew/formulary.rb:561:in loader_for'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:420:in factory' /usr/local/Homebrew/Library/Homebrew/cli/parser.rb:633:in block in formulae'
/usr/local/Homebrew/Library/Homebrew/cli/parser.rb:629:in map' /usr/local/Homebrew/Library/Homebrew/cli/parser.rb:629:in formulae'
/usr/local/Homebrew/Library/Homebrew/cli/parser.rb:308:in parse' /usr/local/Homebrew/Library/Homebrew/cmd/install.rb:141:in install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:110:in
Related
I try to execute the node kline command, but it gives me an error:
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'C:\Program Files\nodejs\kline'
←[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:725:27)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)←[39m
←[90m at internal/main/run_main_module.js:17:47←[39m {
code: ←[32m'MODULE_NOT_FOUND'←[39m,
requireStack: []
}
Although npm install kline was successful. Tell me, maybe I missed something.
From what I gathered the kline module doesn't seem to be designed for the command line. Besides this to install a package which should run from the command line, e.g. nodemon, you should add the -g flag to the npm install command. This will install your package in the global npm scope which also supports calling these packages as a command, if supported.
I HAVE THIS ERROR
On build app in ionic
sudo ionic build android
Error: ANDROID_HOME is not set and "android" command not in your PATH.
You must fulfill at least one of these conditions.
at /home/sbh/testt/mobilebra/platforms/android/cordova/lib/check_reqs.js:206:19
at _fulfilled (/home/sbh/testt/mobilebra/platforms/android/cordova/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/home/sbh/testt/mobilebra/platforms/android/cordova/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/home/sbh/testt/mobilebra/platforms/android/cordova/node_modules/q/q.js:760:13)
at /home/sbh/testt/mobilebra/platforms/android/cordova/node_modules/q/q.js:821:14
at flush (/home/sbh/testt/mobilebra/platforms/android/cordova/node_modules/q/q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:422:7)
Error: /home/sbh/testt/mobilebra/platforms/android/cordova/build:
Command failed with exit code 2
Do the following:
(nano is my preference, use whatever your heart desires)
sudo nano ~/.bashrc
add the following lines, modifying the paths if your SDKs in a different spot:
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
When running chef-solo with --no-fork option it gives the error
FATAL: NoMethodError: undefined method `size' for nil:NilClass
Does any one know the reason for it . It works fine when --fork option.
Below is the error I receive in the Cloud9 IDE when attempting to run my very basic watir test script
require 'rubygems'
require 'watir-webdriver'
browser = Watir::Browser.new :firefox
browser.goto 'http://apple.com'
-- BEGIN ERROR --
/usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/firefox/binary.rb:120:in `path': Could not find Firefox binary (os=linux). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path= (Selenium::WebDriver::Error::WebDriverError)
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/firefox/binary.rb:53:in `execute'
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/firefox/binary.rb:34:in `start_with'
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/firefox/launcher.rb:70:in `start_silent_and_wait'
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/firefox/launcher.rb:35:in `block in launch'
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/firefox/socket_lock.rb:20:in `locked'
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/firefox/launcher.rb:32:in `launch'
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/firefox/bridge.rb:24:in `initialize'
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/common/driver.rb:31:in `new'
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/common/driver.rb:31:in `for'
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver.rb:67:in `for'
from /usr/local/rvm/gems/ruby-2.1.1#rails4/gems/watir-webdriver-0.6.10/lib/watir-webdriver/browser.rb:46:in `initialize'
from /home/ubuntu/workspace/test_puppies/first_script.rb:3:in `new'
from /home/ubuntu/workspace/test_puppies/first_script.rb:3:in `<main>'
I had the same problem. After a lot of trial and error I found running Install firefox and xvfb: sudo apt-get install firefox xvfb fixed it for me.
I should note that I am using the headless gem you mentioned above and this code on the watirwebdriver.com website.
require 'watir-webdriver'
require 'headless'
headless = Headless.new
headless.start
b = Watir::Browser.start 'www.google.com'
puts b.title
b.close
headless.destroy
I have created a Gemfile in my rack application (that previously used .gems). When I run "bundle" I have the following error linked to "do_postgres". I do remember having installed postgres on my machine (mac OS) in the past but it seems the libraries cannot be find. Any ideas ?
...
Using dm-core (1.1.0)
Using dm-do-adapter (1.1.0)
Using dm-migrations (1.1.0)
Installing do_postgres (0.10.5) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
extconf.rb:3: command not found: pg_config --includedir-server
extconf.rb:13: command not found: pg_config --libdir
extconf.rb:13: command not found: pg_config --includedir
extconf.rb:13: command not found: pg_config --libdir
checking for main() in -lpq... no
checking for main() in -llibpq... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
--with-pgsql-server-dir
--without-pgsql-server-dir
--with-pgsql-server-include
--without-pgsql-server-include=${pgsql-server-dir}/include
--with-pgsql-server-lib
--without-pgsql-server-lib=${pgsql-server-dir}/lib
--with-pgsql-client-dir
--without-pgsql-client-dir
--with-pgsql-client-include
--without-pgsql-client-include=${pgsql-client-dir}/include
--with-pgsql-client-lib
--without-pgsql-client-lib=${pgsql-client-dir}/lib
--with-pqlib
--without-pqlib
--with-libpqlib
--without-libpqlib
Could not find PostgreSQL build environment (libraries & headers): Makefile not created
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/do_postgres-0.10.5 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/do_postgres0.10.5/ext/do_postgres/gem_make.out
from /Library/Ruby/Site/1.8/rubygems/installer.rb:446:in `each'
from /Library/Ruby/Site/1.8/rubygems/installer.rb:446:in `build_extensions'
from /Library/Ruby/Site/1.8/rubygems/installer.rb:198:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/source.rb:96:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:55:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in `each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in `each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:44:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:8:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/cli.rb:226:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:in `send'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor.rb:246:in `dispatch'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/base.rb:389:in `start'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/bin/bundle:13
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19
Fresh install of postgres with brew fixed the thing: http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x
sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3 libpq-dev
Fixed for me.