Ok so I had RVM working before but after I upgraded to Mountain Lion it appears to be gone? So I tried reinstalling it:
Ayman$ curl -L https://get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 200 0 --:--:-- --:--:-- --:--:-- 755
100 9979 100 9979 0 0 5911 0 0:00:01 0:00:01 --:--:-- 5911
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 125 100 125 0 0 67 0 0:00:01 0:00:01 --:--:-- 102
100 1047k 100 1047k 0 0 159k 0 0:00:06 0:00:06 --:--:-- 245k
Upgrading the RVM installation in /Users/Ayman/.rvm/
RVM PATH line found in /Users/Ayman/.zshrc.
RVM sourcing line found in /Users/Ayman/.zlogin.
Upgrade Notes:
* No new notes to display.
# RVM: Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm/
# Screencast: http://screencasts.org/episodes/how-to-use-rvm
# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'
Upgrade of RVM in /Users/Ayman/.rvm/ is complete.
# Ayman ####,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne
rvm 1.15.5 (stable) by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.io/]
Should be installed right? Should be ready to go but...
Ayman$ which rvm
Ayman$ rvm requirements
-bash: rvm: command not found
Ayman$ rvm use 1.9.2 --default
-bash: rvm: command not found
Now sure what to do? Looked at my .bash_profile and .bashrc to see what's there:
Ayman$ ls -la
total 136
drwxr-xr-x+ 26 Ayman staff 884 Aug 23 20:44 .
drwxr-xr-x 6 root admin 204 Aug 8 19:27 ..
-rw------- 1 Ayman staff 3 Jun 16 15:21 .CFUserTextEncoding
-rw-r--r--# 1 Ayman staff 21508 Aug 23 08:03 .DS_Store
drwx------ 10 Ayman staff 340 Aug 23 07:57 .Trash
-rw------- 1 Ayman staff 9089 Aug 23 20:47 .bash_history
-rw-r--r-- 1 Ayman staff 106 Aug 22 21:17 .bash_profile
-rw-r--r-- 1 Ayman staff 24 Aug 23 20:47 .bashrc
drwxr-xr-x 3 Ayman staff 102 Aug 21 20:41 .bundler
drwxr-xr-x 3 Ayman staff 102 Jun 24 21:45 .gem
-rw-r--r-- 1 root staff 155 Aug 21 22:52 .gemrc
-rw-r--r-- 1 Ayman staff 61 Aug 21 19:40 .gitconfig
-rw-r--r-- 1 Ayman staff 14 Aug 23 08:14 .irb_history
-rw------- 1 Ayman staff 2415 Aug 23 20:44 .mysql_history
drwxr-xr-x 29 Ayman staff 986 Aug 23 20:58 .rvm
-rw-r--r-- 1 Ayman staff 118 Jun 24 21:25 .zlogin
-rw-r--r-- 1 Ayman staff 59 Jun 24 21:25 .zshrc
drwx------+ 18 Ayman staff 612 Aug 23 08:02 Desktop
drwx------+ 5 Ayman staff 170 Jun 24 23:04 Documents
drwx------+ 19 Ayman staff 646 Aug 22 21:05 Downloads
drwx------# 47 Ayman staff 1598 Aug 9 22:30 Library
drwx------+ 3 Ayman staff 102 Jun 16 15:21 Movies
drwx------+ 5 Ayman staff 170 Jun 24 23:05 Music
drwx------+ 57 Ayman staff 1938 Aug 19 22:40 Pictures
drwxr-xr-x+ 5 Ayman staff 170 Jun 16 15:21 Public
drwxr-xr-x 5 Ayman staff 170 Aug 23 07:57 Sites
Here is my nano .bashprofile:
PS1="\u$ "
alias ll="ls -lahG"
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
Here is my nano .bashrc (I changed it per instructions in another stackoverflow answer):
PATH=$PATH:~/.rvm/bin
Any clue as to what to try next? Thanks!
to force update of rc files:
curl -L https://get.rvm.io | bash -s stable --auto-dotfiles
Mac OS runs .bash_profile but not .bash_rc when you create a new terminal. Move those PATH things into .bash_profile and run again.
As to your second problem, seems you add wrong things into PATH. Add followings into .bash_profile:
PATH=$PATH:$HOME/.rvm/scripts # Add RVM to PATH for scripting
. rvm > /dev/null
Related
After purchasing new equipment which is MacBook Pro 13
Catalina 10.15.7
4 x USB-C
release year: 2020
model 16,2
I decided to install Ubuntu 20 as dual boot.
Previously I installed Ubuntu from raw .iso but it has created too many problems with drivers:
keyboard
touchpad
WIFI !
Then I came across to ready .ISO Image dedicated for MacBooks generally - https://github.com/marcosfad/mbp-ubuntu
While I was reading the article, I found mention about not working WiFi with MBP 16,1 (I was hoping on 16,2 is working)... after Ubuntu installed I noticed WiFi problem (no adapters detected) - this is where hell began...
I tried several ways to solve this problem (mainly mentioned below) - unsuccessfully.
ioreg -l | grep C-4364 | tr "|" "\n"
"RequestedFiles" = ({"Firmware"="C-4364__s-B3/trinidad.trx","TxCap"="C-4364__s-B3/trinidad-X0.txcb","Regulatory"="C-4364__s-B3/trinidad-X0.clmb","NVRAM"="C-4364__s-B3/P-trinidad-X0_M-HRPN_V-u__m-7.7.txt"})
"images" = {"C-4364__s-B3/trinidad.trx"={"imagetype"="Firmware","required"=Yes,"imagename"="C-4364__s-B3/trinidad.trx"},"C-4364__s-B3/trinidad-X0.clmb"={"imagetype"="Regulatory","required"=Yes,"imagename"="C-4364__s-B3/trinidad-X0.clmb"},"C-4364__s-B3/trinidad-X0.txcb"={"imagetype"="TxCap","required"=No,"imagename"="C-4364__s-B3/trinidad-X0.txcb"},"C-4364__s-B3/P-trinidad-X0_M-HRPN_V-u__m-7.7.txt"={"imagetype"="NVRAM","required"=Yes,"imagename"="C-4364__s-B3/P-trinidad-X0_M-HRPN_V-u__m-7.7.txt"}}
ls -la /usr/share/firmware/wifi/C-4364__s-B3 | grep "trinidad"
lrwxr-xr-x 1 root wheel 32 28 maj 03:46 P-trinidad-ID_M-HRPN_V-m__m-7.9.txt -> P-trinidad_M-HRPN_V-m__m-7.9.txt
lrwxr-xr-x 1 root wheel 32 28 maj 03:46 P-trinidad-ID_M-HRPN_V-u__m-7.7.txt -> P-trinidad_M-HRPN_V-u__m-7.7.txt
lrwxr-xr-x 1 root wheel 32 28 maj 03:46 P-trinidad-X0_M-HRPN_V-m__m-7.9.txt -> P-trinidad_M-HRPN_V-m__m-7.9.txt
lrwxr-xr-x 1 root wheel 32 28 maj 03:46 P-trinidad-X0_M-HRPN_V-u__m-7.7.txt -> P-trinidad_M-HRPN_V-u__m-7.7.txt
lrwxr-xr-x 1 root wheel 32 28 maj 03:46 P-trinidad-X2_M-HRPN_V-m__m-7.9.txt -> P-trinidad_M-HRPN_V-m__m-7.9.txt
lrwxr-xr-x 1 root wheel 32 28 maj 03:46 P-trinidad-X2_M-HRPN_V-u__m-7.7.txt -> P-trinidad_M-HRPN_V-u__m-7.7.txt
lrwxr-xr-x 1 root wheel 32 28 maj 03:46 P-trinidad-X3_M-HRPN_V-m__m-7.9.txt -> P-trinidad_M-HRPN_V-m__m-7.9.txt
lrwxr-xr-x 1 root wheel 32 28 maj 03:46 P-trinidad-X3_M-HRPN_V-u__m-7.7.txt -> P-trinidad_M-HRPN_V-u__m-7.7.txt
-rw-r--r-- 1 root wheel 12950 1 wrz 07:05 P-trinidad_M-HRPN_V-m__m-7.9.txt
-rw-r--r-- 1 root wheel 12891 1 wrz 07:05 P-trinidad_M-HRPN_V-u__m-7.7.txt
lrwxr-xr-x 1 root wheel 13 28 maj 03:46 trinidad-ID.clmb -> trinidad.clmb
lrwxr-xr-x 1 root wheel 12 28 maj 03:46 trinidad-ID.trx -> trinidad.trx
lrwxr-xr-x 1 root wheel 13 28 maj 03:46 trinidad-ID.txcb -> trinidad.txcb
lrwxr-xr-x 1 root wheel 13 28 maj 03:46 trinidad-X0.clmb -> trinidad.clmb
lrwxr-xr-x 1 root wheel 12 28 maj 03:46 trinidad-X0.trx -> trinidad.trx
lrwxr-xr-x 1 root wheel 13 28 maj 03:46 trinidad-X0.txcb -> trinidad.txcb
lrwxr-xr-x 1 root wheel 13 28 maj 03:46 trinidad-X2.clmb -> trinidad.clmb
lrwxr-xr-x 1 root wheel 12 28 maj 03:46 trinidad-X2.trx -> trinidad.trx
lrwxr-xr-x 1 root wheel 13 28 maj 03:46 trinidad-X2.txcb -> trinidad.txcb
lrwxr-xr-x 1 root wheel 13 28 maj 03:46 trinidad-X3.clmb -> trinidad.clmb
lrwxr-xr-x 1 root wheel 12 28 maj 03:46 trinidad-X3.trx -> trinidad.trx
lrwxr-xr-x 1 root wheel 13 28 maj 03:46 trinidad-X3.txcb -> trinidad.txcb
-rw-r--r-- 1 root wheel 35322 9 kwi 2020 trinidad.clmb
lrwxr-xr-x 1 root wheel 10 2 paź 15:17 trinidad.trx -> borneo.trx
-rw-r--r-- 1 root wheel 723 9 kwi 2020 trinidad.txcb
I found a few similar issues like my:
https://github.com/mikeeq/mbp-fedora-kernel/issues/3
https://vinodhsblog.co.za/ubuntu-20-04-lts-on-a-macbook-pro/
Using this repo from article above to move drivers from MacOs to Ubuntu side https://github.com/stefanpartheym/mbp15-wifi-driver
https://github.com/Dunedan/mbp-2016-linux/issues/112
After moving drivers from MacOS to Ubuntu and configured followed by articles and people advices WiFi not working whole time... The last important log about wifi drivers from dmesg:
brcmf_pcie_download_fw_nvram: FW failed to initialize
Can you help me with this issue?
I have an exactly same model (16,2) of MacBookPro as yours, which has Broadcom 4364 v3 (rev 04). You can download the driver of Wifi and Bluetooth from
https://github.com/j3ffyang/mbp-fedora/tree/main/brcm
and place them at /lib/firmware/brcm, then execute sudo modprobe -r brcmfmac && sudo modprobe brcmfmac
This solution has been tested on Ubuntu 20.04 and Fedora 35 both.
I'm looking for a solution to save all installed formulae, similar to what package.json does for npm, or any other package manager with it's config file.
Is this possible with homebrew?
I use this:
for p in $(brew list); do brew info $p; done > brewconfig.txt
If you wanted something a little more complete and legible:
#!/bin/bash
brew list > brew-packages.txt
for p in $(brew list); do
brew list $p > brew-$p-files.txt
brew info $p > brew-$p-config.txt
done
which gives this
-rw-r--r-- 1 mark staff 381 4 Mar 13:02 brew-wget-files.txt
-rw-r--r-- 1 mark staff 617 4 Mar 13:02 brew-wget-config.txt
-rw-r--r-- 1 mark staff 496 4 Mar 13:02 brew-zlib-files.txt
-rw-r--r-- 1 mark staff 377 4 Mar 13:02 brew-zlib-config.txt
-rw-r--r-- 1 mark staff 3849 4 Mar 13:02 brew-zeromq-files.txt
-rw-r--r-- 1 mark staff 455 4 Mar 13:02 brew-zeromq-config.txt
-rw-r--r-- 1 mark staff 4292 4 Mar 13:02 brew-xz-files.txt
-rw-r--r-- 1 mark staff 309 4 Mar 13:02 brew-xz-config.txt
There is! brew tap homebrew/brewdler and brew brewdle dump. See brew brewdle help for details.
Im trying to follow a tutorial to do a CORBA assignment.
project
-Client/HelloClient.java
-Server/HelloServer.java
-Hello.idl
I do the first step, trying to compile the IDL (from the project root), and it fails.
$ idlj –td Client –fclient Hello.idl
com.sun.tools.corba.se.idl.InvalidArgument: Invalid argument: –td.
java version "1.8.0_11"
$ ls -l
total 16
drwxr-xr-x 3 juliusskye staff 102 Oct 28 20:14 Client
-rw-r-----# 1 juliusskye staff 85 Oct 28 17:49 Hello.idl
drwxr-xr-x 3 juliusskye staff 102 Oct 28 17:52 Server
-rw-r--r-- 1 juliusskye staff 425 Oct 29 13:45 idljintro.iml
drwxr-xr-x 2 juliusskye staff 68 Oct 29 13:45 src
I found this which says CORBA has problems parsing paths with / in front. But mine doesn't have a /
apparently the Lecturer's instructions were wrong or outdated or the compiler is not fully working but compilation of all files is achieved by
idlj -fall hello.idl
I have a rails app called MBAToolbox. When I enter the directory and type "play", I get the following:
This is not a play application!
That's good! Now I type rails c and I am entered into the rails command line. Clearly this is a rails app. But when I type 'heroku create' and push 'git push heroku master', heroku tries to deploy this as a 'play' app?
I saw on their site that Heroku states:
Heroku Play framework support will be applied to applications that
match:
*/conf/application.conf in any directory except for the modules directory
, when determining to use Play.
I don't have that. My directory is as follows:
drwxr-xr-x 21 admin staff 714 Mar 22 00:20 .
drwxr-xr-x 26 admin staff 884 Mar 21 21:39 ..
-rw-r--r--# 1 admin staff 6148 Mar 21 23:37 .DS_Store
-rw-r--r-- 1 admin staff 430 Mar 21 21:39 .gitignore
drwxr-xr-x 12 admin staff 408 Mar 22 00:22 .idea
-rw-r--r-- 1 admin staff 935 Mar 21 22:38 Gemfile
-rw-r--r-- 1 admin staff 3884 Mar 21 22:38 Gemfile.lock
-rw-r--r-- 1 admin staff 9208 Mar 21 21:39 README.rdoc
-rw-r--r-- 1 admin staff 275 Mar 21 21:39 Rakefile
drwxr-xr-x 9 admin staff 306 Mar 21 21:57 app
drwxr-xr-x 10 admin staff 340 Mar 21 21:56 config
-rw-r--r-- 1 admin staff 160 Mar 21 21:39 config.ru
drwxr-xr-x 6 admin staff 204 Mar 22 00:06 db
drwxr-xr-x 3 admin staff 102 Mar 21 21:39 doc
drwxr-xr-x 5 admin staff 170 Mar 21 21:48 lib
drwxr-xr-x 4 admin staff 136 Mar 21 21:39 log
drwxr-xr-x 9 admin staff 306 Mar 21 23:37 public
drwxr-xr-x 3 admin staff 102 Mar 21 21:39 script
drwxr-xr-x 8 admin staff 272 Mar 21 21:39 test
drwxr-xr-x 6 admin staff 204 Mar 21 21:53 tmp
drwxr-xr-x 4 admin staff 136 Mar 21 21:39 vendor
Thoughts?
This article on the Heroku dev site covers both ends of this. It has a pointer to the actual source of the Play buildpack, so you can read the code that figures out which buildpack to use. You can also explicitly pick the Rails buildpack instead.
I want to save the content of a page with the system command curl but it's not working.
I think it's a problem with localhost but I don't know how to solve this.
def save_page
`/usr/bin/curl -O http://127.0.0.1:3000/category_plist`
end
Server output:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:04:54 --:--:-- 0
If you change your function to the following it should work ...
def save_page
system("/usr/bin/curl -O http://127.0.0.1:3000/category_plist")
end
To test commands like this, exit your local webserver and run "rails console", from there you can enter a command such as this and get an immediate response ...
$ rails console
Loading development environment (Rails 3.1.0.rc4)
1.9.2-p290 :001 > puts system("ls -l")
total 56
-rw-r--r--# 1 creativetechnologist staff 212 3 Feb 2011 Capfile
-rw-r--r--# 1 creativetechnologist staff 924 6 Feb 2012 Gemfile
-rw-r--r--# 1 creativetechnologist staff 3072 6 Feb 2012 Gemfile.lock
-rw-r--r--# 1 creativetechnologist staff 3943 16 Oct 23:16 MOR_git.tmproj
-rw-r--r--# 1 creativetechnologist staff 18 12 Jul 19:06 README
-rw-r--r--# 1 creativetechnologist staff 267 30 Aug 2011 Rakefile
drwxr-xr-x 7 creativetechnologist staff 238 30 Aug 2011 app
drwxr-xr-x 11 creativetechnologist staff 374 13 Sep 2011 config
-rw-r--r--# 1 creativetechnologist staff 157 30 Aug 2011 config.ru
drwxr-xr-x 6 creativetechnologist staff 204 3 Feb 2011 db
drwxr-xr-x 3 creativetechnologist staff 102 3 Feb 2011 doc
drwxr-xr-x 4 creativetechnologist staff 136 3 Feb 2011 key
drwxr-xr-x 6 creativetechnologist staff 204 7 Sep 2011 lib
drwxr-xr-x 6 creativetechnologist staff 204 11 Mar 2012 log
drwxr-xr-x 3 creativetechnologist staff 102 30 Aug 2011 logs
drwxr-xr-x 13 creativetechnologist staff 442 6 Feb 2012 public
drwxr-xr-x 3 creativetechnologist staff 102 3 Feb 2011 script
drwxr-xr-x 8 creativetechnologist staff 272 3 Feb 2011 test
drwxr-xr-x 6 creativetechnologist staff 204 3 Feb 2011 tmp
drwxr-xr-x 3 creativetechnologist staff 102 3 Feb 2011 vendor
true
=> nil
1.9.2-p290 :002 >
Hope that helps.
Try this:
def save_page
`/usr/bin/curl -s http://127.0.0.1:3000/category_plist` # -s will silent curl's output except the page
end