Solved

bash_profile contents & MacPorts - Need To Be Changed

Posted on 2016-08-29
4
85 Views
Last Modified: 2016-08-30
I had this question after viewing Changing $PATH variable - OS X.

I have removed macports and I am wondering if this is causing a login problem with AWS's myaccount tab.  Or, if I need to remove all lines referring to macports?

export PATH=${PATH}:~/android-sdk-mac/tools
export PS1="rjw "
export PATH="/usr/local/mysql/bin:$PATH"
alias ll='ls -lahG'
export PATH=/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/rjw/androi$

export PATH=/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/rjw/androi$

export PATH=/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/rjw/androi$

##
# Your previous /Users/rjw/.bash_profile file was backed up as /Users/rjw/.bash_profile.macport$
##

# MacPorts Installer addition on 2016-01-13_at_10:05:16: adding an appropriate PATH variable fo$
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.


##
# Your previous /Users/rjw/.bash_profile file was backed up as /Users/rjw/.bash_profile.macport$
##

# MacPorts Installer addition on 2016-07-26_at_16:54:01: adding an appropriate PATH variable fo$
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.


##
# Your previous /Users/rjw/.bash_profile file was backed up as /Users/rjw/.bash_profile.macport$
##

# MacPorts Installer addition on 2016-07-26_at_17:07:46: adding an appropriate PATH variable fo$
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.


##
# Your previous /Users/rjw/.bash_profile file was backed up as /Users/rjw/.bash_profile.macport$
##

# MacPorts Installer addition on 2016-07-26_at_17:13:45: adding an appropriate PATH variable fo$
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.


# Setting PATH for Python 3.5
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH
export PATH=$PATH:/Users/rjw/Documents/Python

Open in new window


This is the path I wanted to add to my .bash_profile
/Users/rjw/Documents/Python

Currently, all of the my browsers are showing no cookies stored when I try to login to my Amazon Web Services console.

Thanks,
0
Comment
Question by:sharingsunshine
  • 2
4 Comments
 
LVL 29

Assisted Solution

by:serialband
serialband earned 250 total points
ID: 41775699
Have you completely removed macports? https://guide.macports.org/chunked/installing.macports.uninstalling.html
sudo rm -rf \
        /opt/local \
        /Applications/DarwinPorts \
        /Applications/MacPorts \
        /Library/LaunchDaemons/org.macports.* \
        /Library/Receipts/DarwinPorts*.pkg \
        /Library/Receipts/MacPorts*.pkg \
        /Library/StartupItems/DarwinPortsStartup \
        /Library/Tcl/darwinports1.0 \
        /Library/Tcl/macports1.0 \
        ~/.macports

Open in new window


export PATH="$PATH:/Users/rjw/Documents/Python"
0
 
LVL 40

Accepted Solution

by:
Eoin OSullivan earned 250 total points
ID: 41775866
Your bash_profile is FULL of repeating $PATH declarations!!  It isn't necessarily a cause of your problem but there's a huge amount of redundant declarations in there.
Line 11 to Line 45 are the same declaration repeated
Lines 5, 7 and 9 are identical too
Line 3 is already included in the declaration on line 5,7,9 so is redundant
0
 

Author Comment

by:sharingsunshine
ID: 41776941
Serialband thanks for the code to remove macports and providing the path statement

Eoin, I took your advice and cleaned up my bash_profile by following your instructions.

Neither one of you solved my problem of no cookies being stored on my browsers.  However, you both have given me sound advice that I can use.
0
 
LVL 40

Expert Comment

by:Eoin OSullivan
ID: 41777561
Your ticket requested help with clearing up your bash_profile .. you didn't outline the AWS session issue so we cannot help with that.

I'd suggest that perhaps the bash_profile has nothing to do with browser sessions but if you want to open a new issue and outline the issue with as much detail as possible someone might be able to resolve it with you.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question