Error to ~/.bash_profile

(Zudva) #1

Hi All! )))

Why i have this problem?

-bash: export:Fusion.app/Contents/Public:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/admin/Desktop/android:/Users/Master/.nexustools:/Users/admin/Desktop/android:/Users/Master/.nexustools’: not a valid identifier`

I delete anaconda and delete node.js + node.js

In brew doctor i have this information:

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
  /Library/Frameworks/Python.framework/Versions/2.7/bin/python2-config
  /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
  /Library/Frameworks/Python.framework/Versions/2.7/bin/python-config

In ~/.bash_profile i have this write:

source ~/.profile

export PATH=$PATH:~/.nexustools

export NVM_DIR="/Users/Master/.nvm"

[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # This loads nvm

Setting PATH for Python 2.7

The original version is saved in .bash_profile.pysave

PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"

export PATH

Cuda lib

export DYLD_LIBRARY_PATH="/usr/local/cuda/lib":$DYLD_LIBRARY_PATH

export PATH="/usr/local/sbin:$PATH"

PATH=/usr/local/sbin:$PATH

Homebrew

PATH=/usr/local/bin:$PATH

export PATH="/usr/local/opt/curl/bin:$PATH"

Homebrew

export PATH=/usr/local/bin:/usr/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/Master/.nvm/versions/node/v8.9.3/bin:/opt/loc$

virtualenv and virtualenvwrapper

export WORKON_HOME=$HOME/.virtualenvs

export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3

source /usr/local/bin/virtualenvwrapper.sh

export PATH=/usr/local/gcc-8.3/bin:$PATH

export PATH="/usr/local/opt/opencv@3/bin:$PATH"

export PATH="/usr/local/opt/opencv@4/bin:$PATH"

#OpenCV_4

export PATH="/usr/local/opt/opencv@4/bin:$PATH"

export LDFLAGS="-L/usr/local/opt/opencv@4/lib"

export CPPFLAGS="-I/usr/local/opt/opencv@4/include"

export PKG_CONFIG_PATH="/usr/local/opt/opencv@4/lib/pkgconfig"

#OpeCV_3

export PATH="/usr/local/opt/opencv@3/bin:$PATH"

export LDFLAGS="-L/usr/local/opt/opencv@3/lib"

export CPPFLAGS="-I/usr/local/opt/opencv@3/include"

export PKG_CONFIG_PATH="/usr/local/opt/opencv@3/lib/pkgconfig"

export PATH="/usr/local/opt/libxml2/bin:$PATH"

#libxml2

export LDFLAGS="-L/usr/local/opt/libxml2/lib"

export CPPFLAGS="-I/usr/local/opt/libxml2/include"

export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig"

0 Likes

(Zudva) #2
-bash: export:` Fusion.app/Contents/Public:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/admin/Desktop/android:/Users/Master/.nexustools:/Users/admin/Desktop/android:/Users/Master/.nexustools’: not a valid identifier
0 Likes

(Sean Molenaar) #3

~/.profile probably includes more PATH info, which probably has an unescaped space.

0 Likes

(Zudva) #4

Hi!
How i can repair this problem? Im mot understand it. )

0 Likes

(Sean Molenaar) #5

is there another line similar to export PATH="/some/path/:$PATH" in the ~/.profile file?

0 Likes

(Zudva) #6

No, i no have.

I have it:

source ~/.profile

export PATH=$PATH:~/.nexustools

export NVM_DIR="/Users/Master/.nvm"

[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # This loads nvm

Setting PATH for Python 2.7

The original version is saved in .bash_profile.pysave

PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"

export PATH

Cuda lib

export DYLD_LIBRARY_PATH="/usr/local/cuda/lib":$DYLD_LIBRARY_PATH

export PATH="/usr/local/sbin:$PATH"

PATH=/usr/local/sbin:$PATH

Homebrew

PATH=/usr/local/bin:$PATH

export PATH="/usr/local/opt/curl/bin:$PATH"

Homebrew

export PATH=/usr/local/bin:/usr/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/Master/.nvm/versions/node/v8.9.3/bin:/opt/loc$

virtualenv and virtualenvwrapper

export WORKON_HOME=$HOME/.virtualenvs

export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3

source /usr/local/bin/virtualenvwrapper.sh

export PATH=/usr/local/gcc-8.3/bin:$PATH

export PATH="/usr/local/opt/opencv@3/bin:$PATH"

export PATH="/usr/local/opt/opencv@4/bin:$PATH"

#OpenCV_4

export PATH="/usr/local/opt/opencv@4/bin:$PATH"

export LDFLAGS="-L/usr/local/opt/opencv@4/lib"

export CPPFLAGS="-I/usr/local/opt/opencv@4/include"

export PKG_CONFIG_PATH="/usr/local/opt/opencv@4/lib/pkgconfig"

#OpeCV_3

export PATH="/usr/local/opt/opencv@3/bin:$PATH"

export LDFLAGS="-L/usr/local/opt/opencv@3/lib"

export CPPFLAGS="-I/usr/local/opt/opencv@3/include"

export PKG_CONFIG_PATH="/usr/local/opt/opencv@3/lib/pkgconfig"

export PATH="/usr/local/opt/libxml2/bin:$PATH"

#libxml2

export LDFLAGS="-L/usr/local/opt/libxml2/lib"

export CPPFLAGS="-I/usr/local/opt/libxml2/include"

export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig"

added by Anaconda3 2019.03 installer

>>> conda init >>>

!! Contents within this block are managed by ‘conda init’ !!

__conda_setup="$(CONDA_REPORT_ERRORS=false ‘/Users/Master/anaconda3/bin/conda’ shell.bash hook 2> /dev/null)"

if [ $? -eq 0 ]; then

\eval “$__conda_setup”

else
if [ -f “/Users/Master/anaconda3/etc/profile.d/conda.sh” ]; then
. “/Users/Master/anaconda3/etc/profile.d/conda.sh”
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/Users/Master/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup

<<< conda init <<<

0 Likes

(Sean Molenaar) #7

This seems to be the contents of the file ~/.bash_profile I’m refering to the ~/.profile file.

0 Likes

(Zudva) #8

Ups, sorry!

In this file: ~/.profile:

Homebrew

export PATH=/usr/local/bin:$PATH


What i must have in this file?

0 Likes

(Sean Molenaar) #9

-bash: export: Fusion.app/Contents/Public:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/admin/Desktop/android:/Users/Master/.nexustools:/Users/admin/Desktop/android:/Users/Master/.nexustools’: not a valid identifier

What are you trying to do when you get this error? And what happens when you run grep -r 'Fusion.app/Contents' ~/.*

0 Likes

(Zudva) #10

I remember. I removed Anaconda and took with her the file ~/.bash_profile

How to restore these entries in the file?

Fusion.app - this Vmware software, and i uninstall it.

I need only: dotnet
/usr/local/share/dotnet
~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands

I not need:
/Users/admin/Desktop/android:/Users/Master/.nexustools:/Users/admin/Desktop/android:/Users/Master/.nexustools’
Fusion.app/Contents/Public:/usr/local/share/dotnet:/opt/X11/bin

How to delete this request?

Thank you! )))

0 Likes

(Zudva) #11

after add:
#Dotnet
export PATH="/usr/local/share/dotnet:$PATH"

command: “dotnet --info” work.

How to correct write this text to ~/.bash_profile?

~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands
/Users/admin/Desktop/android
/Users/Master/.nexustools
/Users/admin/Desktop/android
/Users/Master/.nexustools

Thank you!

0 Likes

(Paolo G Giarrusso) #12

Bad: export PATH=$PATH:~/.nexustools
Good: export PATH=“$PATH:~/.nexustools”

Bad: export PATH=/usr/local/bin:$PATH
Good: export PATH=“/usr/local/bin:$PATH”

The difference are the quotes.

0 Likes

(Zudva) #13

Hi! I write correct.

how do I remove requests for these programs? Reinstall them? For example “Fusion.app” I deleted long ago.

0 Likes

(Sean Molenaar) #14

The requests are defined somewhere in a file. Please answer this question:

What are you trying to do when you get this error? And what happens when you run grep -r 'Fusion.app/Contents' ~/.*

0 Likes

(Zudva) #15

Sorry, but all i have then write this command: grep -r ‘Fusion.app/Contents’ ~/.*
( the laptop stands on the last line for a long time and does not move )

it’s it:

Binary file /Users/Master/./Library/Application Support/com.apple.backgroundtaskmanagementagent/backgrounditems.btm matches

Binary file /Users/Master/./Library/Application Support/Google/Chrome/Default/databases/chrome-extension_edacconmaakjimmfgnblocblbcdcpbko_0/1 matches

Binary file /Users/Master/./Library/Application Support/Google/Chrome/Default/History matches

Binary file /Users/Master/./Library/Application Support/Google/Chrome/Default/Shortcuts matches

grep: /Users/Master/./Library/Application Support/Google/Chrome/RunningChromeVersion: No such file or directory

grep: /Users/Master/./Library/Application Support/Google/Chrome/App Shim Socket: Operation not supported on socket

grep: /Users/Master/./Library/Application Support/Google/Chrome/SingletonSocket: Operation not supported on socket

grep: /Users/Master/./Library/Application Support/Google/Chrome/SingletonCookie: No such file or directory

grep: /Users/Master/./Library/Application Support/Google/Chrome/SingletonLock: No such file or directory

grep: /Users/Master/./Library/Application Support/Code/1.21.1-shared.sock: Operation not supported on socket

grep: /Users/Master/./Library/Application Support/Adobe/Acrobat/DC/Acrobat/Synchronizer/Notification: Operation not supported on socket

grep: /Users/Master/./Library/Application Support/Adobe/Acrobat/DC/Acrobat/Synchronizer/Commands: Operation not supported on socket

grep: /Users/Master/./Library/Application Support/WhatsApp/SS: Operation not supported on socket

grep: /Users/Master/./Library/Application Support/WhatsApp/SingletonCookie: No such file or directory

grep: /Users/Master/./Library/Application Support/WhatsApp/SingletonLock: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.apple.iCal.savedState: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.apple.calculator.savedState: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.apple.Preview.savedState: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.apple.TextEdit.savedState: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.apple.iChat.savedState: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.apple.appstore.savedState: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.daisydiskapp.DaisyDisk.savedState: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.apple.iWork.Pages.savedState: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.microsoft.Word.savedState: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.apple.iPhoto.savedState: No such file or directory

grep: /Users/Master/./Library/Saved Application State/com.apple.iWork.Numbers.savedState: No such file or directory

grep: /Users/Master/./Library/Developer/Xcode/GPUToolsAgent.sock: Operation not supported on socket

Binary file /Users/Master/./Library/Preferences/com.apple.universalaccessAuthWarning.plist matches

Binary file /Users/Master/./Library/Preferences/com.apple.loginitems.plist matches

grep: /Users/Master/./Library/CoreData/ExternalRecords/85DF681F-468F-49D1-B140-994A332C3E41/.support/store-file: No such file or directory

grep: /Users/Master/./Library/Internet Plug-Ins/BlueStacks Install Detector.plugin: No such file or directory

Binary file /Users/Master/./Library/Group Containers/6N38VWS5BX.ru.keepcoder.Telegram/account-3353086024747511350/postbox/db/db_sqlite matches

grep: /Users/Master/./Library/Group Containers/Q79WDW8YH9.com.evernote.Evernote/Evernote/quick-note/zudvin@mail.ru___Evernote/current-quicknote: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Filters: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/ByHost/com.apple.iLifeAssetManagement.agent.5BE8E38E-37B1-5480-88E5-AFEC9BE94167.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/ByHost/com.apple.iLifeAssetManagement.crash.12977141-0E19-59BA-BE6B-5FA80252D499.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/ByHost/MobileMeAccounts.12977141-0E19-59BA-BE6B-5FA80252D499.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/ByHost/com.apple.iLifePhotoStream.importstatus.5BE8E38E-37B1-5480-88E5-AFEC9BE94167.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/ByHost/com.apple.iLifePhotoStream.5BE8E38E-37B1-5480-88E5-AFEC9BE94167.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/ByHost/com.apple.iLifeAssetManagement.agent.12977141-0E19-59BA-BE6B-5FA80252D499.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/ByHost/com.apple.iLifePhotoStream.importstatus.12977141-0E19-59BA-BE6B-5FA80252D499.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/ByHost/MobileMeAccounts.5BE8E38E-37B1-5480-88E5-AFEC9BE94167.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/ByHost/com.apple.iLifePhotoStream.12977141-0E19-59BA-BE6B-5FA80252D499.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/ByHost/com.apple.iLifeAssetManagement.crash.5BE8E38E-37B1-5480-88E5-AFEC9BE94167.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/com.apple.iLifeAssetManagement.agent.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/com.apple.security.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Preferences/com.apple.security_common.plist: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/KeyBindings: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/QuickLook: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Library/Images/People: No such file or directory

grep: /Users/Master/./Library/Containers/com.apple.CloudPhotosConfiguration/Data/Documents/iChats: No such file or directory

0 Likes

(Sean Molenaar) #16

Hmm, no info in there unfortunately. What about this question? Please tell me what app you’re using when it happens and what action you’re trying to perform.

0 Likes

(Zudva) #17

Im open terminal and enter to bash user.

Bash take all PATH in ~/.bash_profile, well?

Im not understand one, how delete request to Fussion.app, Android studio and nexustools ( i delete this app )

I recorded a video with the appearance of my problem: https://drive.google.com/open?id=1g7L049Nb051wdV5kuCFl7fIfcDYmD9VN

Thank you!

0 Likes

(Sean Molenaar) #18

Can make a comment out of the 2 long lines by putting # in front of the 2 lines that are wider then your screen? and then restart the terminal?

0 Likes

(Zudva) #19

I’m not sure I understand what i must do. Sorry.

0 Likes

(Sean Molenaar) #20


All the lines that say “Fusion.app” somewhere need have a # and a space in front of them.

0 Likes