Solved

bash_profile contents & MacPorts - Need To Be Changed

Posted on 2016-08-29
4
48 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 27

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 39

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 39

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now