Code Monkey home page Code Monkey logo

dotfiles-public's People

Contributors

mleglise avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

dotfiles-public's Issues

mysql install for Lion

   57  brew install mysql
   58  unset TMPDIR
   59  mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
   60  cp /usr/local/Cellar/mysql/5.5.14/com.mysql.mysqld.plist ~/Library/LaunchAgents/
   61  mkdir -p ~/Library/LaunchAgents
   62  cp /usr/local/Cellar/mysql/5.5.19/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
   63  launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
   64  vim  /usr/local/etc/my.cnf
   65  mysql.server start
   66  history

/usr/local/etc/my.cnf

port = 3306
socket = /tmp/mysql.sock
[mysqld]
bind-address = 127.0.0.1
port = 3306
socket = /tmp/mysql.sock

Then don't forget to change your password.

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/local/Cellar/mysql/5.5.19/bin/mysqladmin -u root password 'new-password'
/usr/local/Cellar/mysql/5.5.19/bin/mysqladmin -u root -h wl00031128.active.local password 'new-password'

RVM Install with Lion and XCode 4.2.1

When using xcode 4.2.1 I had to pass --with-gcc=clang

rvm get head
rvm install 1.9.3 --with-gcc=clang
rvm install 1.9.2 --with-gcc=clang

FYI

wl00030835:~ jspooner$ ls -al /Developer/usr/bin/ | grep gcc
lrwxr-xr-x 1 root wheel 12 Feb 8 10:08 cc -> llvm-gcc-4.2
lrwxr-xr-x 1 root wheel 12 Feb 8 10:08 gcc -> llvm-gcc-4.2
lrwxr-xr-x 1 root wheel 28 Feb 8 10:08 gcov-4.2 -> ../llvm-gcc-4.2/bin/gcov-4.2
lrwxr-xr-x 1 root admin 52 Feb 8 10:07 i686-apple-darwin11-llvm-g++-4.2 -> ../llvm-gcc-4.2/bin/i686-apple-darwin11-llvm-g++-4.2
lrwxr-xr-x 1 root admin 52 Feb 8 10:07 i686-apple-darwin11-llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/i686-apple-darwin11-llvm-gcc-4.2
lrwxr-xr-x 1 root admin 32 Feb 8 10:07 llvm-cpp-4.2 -> ../llvm-gcc-4.2/bin/llvm-cpp-4.2
lrwxr-xr-x 1 root admin 32 Feb 8 10:07 llvm-g++ -> ../llvm-gcc-4.2/bin/llvm-g++-4.2
lrwxr-xr-x 1 root admin 32 Feb 8 10:07 llvm-g++-4.2 -> ../llvm-gcc-4.2/bin/llvm-g++-4.2
lrwxr-xr-x 1 root admin 32 Feb 8 10:07 llvm-gcc -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
lrwxr-xr-x 1 root admin 32 Feb 8 10:07 llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2

libyaml error on Lion

libyaml error when trying to create your first database.

Error

/Users/jspooner/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
rake aborted!

Solution

brew install libyaml
rvm get head
rvm reinstall 1.9.3  --with-gcc=clang

gem install nokogiri on Lion

With Lion there is no gcc so nokogiri will not be able to compile.

You'll see this error.

make
compiling html_document.c
make: gcc-4.2: No such file or directory
make: *** [html_document.o] Error 1

Nokogiri install steps

1 brew install libxml2
2 brew install libxslt
3 sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

RVM Deprecated command

[!1] ~/Documents/dotfiles-public$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

Deprecated command, please use:

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

-bash: /Users/jspooner/.rvm/bin/rvm-prompt: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.