Usr/local/bin/virtualenvwrapper.sh No Such File Or Directory

Posted by admin
Usr/local/bin/virtualenvwrapper.sh No Such File Or Directory Rating: 6,2/10 7273 reviews

I've created a bash script but when I try to execute it, I get #!/bin/bash no such file or directory I need to run the command: bash script.sh for it to work. How can I fix this? Stack Exchange Network. I'm greeted to this everytime I start up my Terminal (using a mac). /usr/local/bin/virtualenvwrapper.sh: No such file or directory I am also.

  1. Sqlstate Hy000 2002 No Such File Or Directory

Sqlstate Hy000 2002 No Such File Or Directory

Hi,
i have a script which runs a couple of exports, unset and an executable.
i have done the chmod 755 and dos2unix but when i try to run it with ./script.sh i get:
:bad interpreter - No such directory or filebin/sh
my script is as follows:
#!/bin/sh
Usr/local/bin/virtualenvwrapper.sh No Such File Or Directory #clean the env
unset JAVA_HOME
unset JAVA_JAR
unset JRE_HOME
unset CLASSPATH
unset LD_LIBRARY_PATH
unset ODBCINI
unset OMNINAMES_LOGDIR
unset OMNIORB_DIR
unset AXIOM_3RD_PARTY
unset AXIOM_LOG_DIR
unset XML_C_DIR
# AxiomSL settings
export AXIOM_3RD_PARTY=/AxiomSL
export AXIOM_LOG_DIR='$AXIOM_3RD_PARTY'/log
#export CVSROOT=:pserver:axiom@dragon:/u/axiom/cvsroot
export XML_C_DIR='$AXIOM_3RD_PARTY'/xml4csrc3_3_1
export OMNIORB_DIR='$AXIOM_3RD_PARTY'/omniORB-4.0.0
export OMNINAMES_LOGDIR='$AXIOM_3RD_PARTY'/omniNamesLog
export LD_LIBRARY_PATH=/lib:/usr/local/lib:/opt/odbc32v50/lib:'$OMNIORB_DIR'/lib:'$XML_C_DIR'/{forcedbreak}
lib:'$AXIOM_3RD_PARTY'/axiom_app/lib
# Oracle settings
#export ORACLE_HOME=/home/fabrice/OraHome1
#export ORACLE_SID=ficus
#export ORACLE_TERM=xterm
#ODBC settings /opt/odbc32v50/odbc.ini
export ODBCINI=/opt/odbc32v5
#general Paths settings.
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/bin/{forcedbreak}X11:.:/root/bin:'$ORACLE_HOME'/bin:'$OMNIORB_DIR'/bin:'$AXIOM_3RD_PARTY'/java/bin:.
# Java settings
export JAVA_JAR='$AXIOM_3RD_PARTY'/java/java_jar
export JAVA_HOME='$AXIOM_3RD_PARTY'/java/j2sdk1.4.2_06
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$JAVA_HOME/bin
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin/java:$PATH
#Other settings
#export LANG=en_US
export AXIOM_MAIN_DSN='DSN=orax;UID=axiom;PWD=axiom'
$AXIOM_3RD_PARTY/axiom_app/bin/launch_all.sh 127.0.0.1 1122 linux
i don't really understand what's going on, other scripts work fine.
Thanks in advance.

The sims 2 mac downloads. I use Virtualenv and VirtualenvWrapper on my local machines and find them wonderful tools. I am trying to set the same up on a virtual machine running Ubuntu 12.04 server and Apache for my production Python applications.

Virtualenv is working fine. But I am having issues configuring VirtualenvWrapper. I have installed it via pip. pip freeze gives me

I have followed the instructions on the documentation

NOTE: See Edit below virtualenvwrapper was actually installed via apt-get. i did follow the rest fo the instructions though.

but when I try the next step

I get an error

My /usr/local/bin/ only has one file in it django-admin.py

The documentation states

First, some initialization steps. Most of this only needs to be done one time. You will want to add the command to source /usr/local/bin/virtualenvwrapper.sh to your shell startup file, changing the path to virtualenvwrapper.sh depending on where it was installed by pip.

How can i find the location of this file?

Using find / -name 'virtualenvwrapper.sh' just outputs a list of Permission denied errors

Buku metode penelitian pendidikan

Running find / -name virtualenvwrapper gives me

Any advice on how to find the file would be great

EDIT:

I actually installed virtualenvwrapper via apt-get due to an issue with my proxy

Possibly this pits the virtualenvwrapper.sh in a different place?

Deepend
DeependDeepend

1 Answer

Read the README.Debian of the package you installed (and generally whenever you install an unfamiliar package). It is in /usr/share/doc/virtualenvwrapper and it tells you that the file you are looking for is installed in /etc/bash_completion.d/virtualenvwrapper.

See also https://askubuntu.com/questions/251378/where-is-virtualenvwrapper-sh

Community
tripleeetripleee

Not the answer you're looking for? Browse other questions tagged ubuntuubuntu-12.04virtualenvwrapper or ask your own question.