zsh: command not found: apt-get [closed] - terminal

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
Improve this question
To solve the following error Cucumber Rails 3.1 uninitialized constant ActionController::Dispatcher (NameError), I am following this post -> http://www.ruby-on-rails-outsourcing.com/articles/2011/01/07/getting-started-with-rvm-and-rails/ .
On running this command on my terminal,
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev
I get this error: zsh: command not found: apt-get. Few posts suggested using Macports but I am not sure how to use that.

apt-get is a Linux package manager. On OS X you need to use something Mac specific like Macports or Homebrew. I recommend trying out Homebrew.

Install android-sdk using brew:
brew install --cask android-sdk

Related

Metasploit crashed after upgrade [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have recently upgraded metasploit framework and after doing it, when I try to launch it I get the next error:
msfconsole
Unable to find a spec satisfying metasploit-framework (>= 0) in the set. Perhaps the lockfile is corrupted?
Run bundle install to install missing gems.
I have unistalled it and reinstall but the problem continues. Any suggestion?
I had the same problem, the following fixed it:
sudo gem install bundler -v 2.2.4
sudo msfdb reinit
sudo msfconsole
Just be aware that the bundler version may have updated since this was posted and therefore may need to be changed. Check what version you're currently running before making these changes.
https://github.com/rapid7/metasploit-framework/issues/11597
What finally worked for me was updating my bundler then running bundle install :
/usr/share/metasploit-framework$ sudo gem install bundler:2.2.5
/usr/share/metasploit-framework$ sudo bundle install
happend to me too. but my solution was easier. i didnt touch kali for a while, so i did all the upgrades and therfore i started entering "sudo su". so when i then start msfconsole i get exactly the same error message. enter "exit" to leave root and try again... worked for me.
I got the same issue after doing sudo apt upgrade.
To fix that, I had to do sudo apt update && sudo apt full-upgrade -y.
I got this solution from here https://www.reddit.com/r/Kalilinux/comments/l4zi6i/hey_everyone/

What exact dependencies does Ruby need on Ubuntu?

When reading how to install Ruby on Ubuntu, I frequently see this kind of thing:
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
But which of these packages are actually needed and which are nice to have?
And also... why?
I can't seem to find any good information online that answers this question.
apt-cache showpkg <specific-ruby-version-package> will show you the package dependencies. As above comment says, apt-get install ... will automatically install the dependencies. Anything people are installing beyond that may have to do with their development environment or the ability to build specific gems with native extensions.

How do I install homebrew on mac? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I tried the command
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/include
/usr/local/lib
/usr/local/lib/pkgconfig
==> The following directories will have their group set to admin:
/usr/local/include
/usr/local/lib
/usr/local/lib/pkgconfig
but I have no idea what that means...
Do you have XCode and Command Line Tools installed? If so, the above script should have done it.
Go to the terminal and type
brew doctor
This will tell you the status of your install.

How to reinstall ffmpeg clean on Ubuntu 14.04? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
sorry - might be a bit of a Newbie question, but after researching via Google I am even more confused.
I have Jon Severinsson's ffmpeg PPA installed on Ubuntu 14.04 and want to replace it with mc4man's PPA.
How do I purge the old PPA correctly and clean, so I can get the new one?
Is it
sudo ppa-purge ppa:jon-severinsson/ffmpeg
and then
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
?
To be on safe side I removed ffmpeg completely before:
sudo apt-get --purge remove ffmpeg
sudo apt-get --purge autoremove
sudo apt-get install ppa-purge
sudo ppa-purge ppa:jon-severinsson/ffmpeg
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg
I am not expert so maybe there is safer/better way but this worked for me. Interestingly last ffmpeg version from jon-severinsson was ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers and in mc3man repo
ffmpeg version 2.6.1 Copyright (c) 2000-2015 the FFmpeg developers.
Today I found another PPA providing Jon Severinsson's ffmpeg package: https://launchpad.net/~fnu/+archive/ubuntu/main-fnu. Unlike the mc3man/trusty-media PPA it provides ffmpeg version 1.2.6-7:1.2.6-1~trusty1. It seems to be the same package contained in the old jon-severinsson/ffmpeg PPA.

Faulty ruby compilation with rvm: getting 'undefined symbol: rb_Digest_MD5_Init' while running racku

I am on Ubuntu. Any ideas? Do I have to set any compilation option?
It seems you're missing some devel packages on your system. See my article here, specifically this step. I'm not sure, but the MD5 code could be part of libssl, so it would be covered by installing these packages.
$ sudo apt-get install zlib1g-dev libreadline5-dev libssl-dev libxml2-dev

Resources