When I installed MacPorts 1.8.2 on MacOS X 10.5.8, it automatically changed my PATH in my .bash_profile file. To fix the “rubygems (LoadError)” error message, I moved the “/opt/local/bin” from the beginning of the PATH to the end as follows:
Old PATH Environment Variable On Mac OSX:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
New PATH Environment Variable On Mac OSX:
export PATH=$PATH:/opt/local/bin:/opt/local/sbin
After changing the order, both of the following commands still work.
Commands That Work After Changing The PATH Environment Variable:
ruby script/console
port list
APPIP ERROR: amazonproducts[
AccessDeniedAwsUsers|The Access Key Id 1ZNGM52M8EWAXJFFRR82 is not enabled for accessing this version of Product Advertising API. Please migrate your credentials as referred here https://webservices.amazon.com/paapi5/documentation/migrating-your-product-advertising-api-account-from-your-aws-account.html.
]
APPIP ERROR: amazonproducts[
AccessDeniedAwsUsers|The Access Key Id 1ZNGM52M8EWAXJFFRR82 is not enabled for accessing this version of Product Advertising API. Please migrate your credentials as referred here https://webservices.amazon.com/paapi5/documentation/migrating-your-product-advertising-api-account-from-your-aws-account.html.
]
Thanks for the fix – worked like a charm!
Thanks a million. I never would have figured this one out on my own.
this did it for me
gem install ruby-mysql