Opened 13 years ago

Closed 13 years ago

#33501 closed defect (invalid)

Port install Mysql

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

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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 (3)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Keywords: mysql removed
Priority: HighNormal
Resolution: invalid
Status: newclosed

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 13 years ago by dayansh@…

Resolution: invalid
Status: closedreopened

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 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: reopenedclosed

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.