New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33501 (closed defect: invalid)

Opened 15 months ago

Last modified 15 months ago

Port install Mysql

Reported by: dayansh@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: ryandesign@…
Port:

Description (last modified by ryandesign@…) (diff)

Hey guys,
I have been trying to install MYSQL but eveytime i do that it give me these errors

$ port install mysql
Error: Insufficient privileges to write to MacPorts install prefix.

i also tried -- gem install mysql2 it give me a response saying

$ gem install mysql2
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - /Users/ad/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.11/.gitignore

Any help is highly appreciated

Change History

comment:1 Changed 15 months ago by ryandesign@…

  • Status changed from new to closed
  • Description modified (diff)
  • Cc ryandesign@… added
  • Priority changed from High to Normal
  • Keywords mysql removed
  • Resolution set to invalid

To make modifications to files in /opt/local, MacPorts must be run as root, which is usually done using sudo:

sudo port install mysql5

I have no familiarity with ruby so I cannot help you install gems.

comment:3 Changed 15 months ago by dayansh@…

  • Status changed from closed to reopened
  • Resolution invalid deleted

Hey Ryan, thank you i did what you said and it returned this, i still cant figure out what is the problem when i am tying to start one of the rails app which has mysql require it breaks down

$ sudo port install mysql5
Password:
---> Computing dependencies for mysql5
---> Cleaning mysql5

comment:4 Changed 15 months ago by ryandesign@…

  • Status changed from reopened to closed
  • Resolution set to invalid

It means you have already succeeded at installing mysql5.

This is just the MySQL programs, libraries, and headers, however; it does not including anything that will help you use MySQL from Ruby. Perhaps you need to also install the rb19-mysql port (or, if you're using Ruby 1.8 instead of 1.9, the rb-mysql port).

The issue tracker is for keeping track of bug reports and enhancement requests. For questions about what ports to install or how to install them or use them, please ask on the macports-users mailing list.

Note: See TracTickets for help on using tickets.