Bazaar Version Control System

installing bazaar on Justhost, cannot set variables

Asked by Fabio on 2010-12-06

Hello,
I'm trying to install a bazaar repository on my JustHost shared hosting; i followed some tutorials which suggested to install bzr this way:

python setup.py install --home $HOME build_ext --allow-python-fallback

due to impossibility to use gcc; so I did it, and it seemed to install correctly. I suddenly defined variambles in .cshrc with lines

export MANPATH=$MANPATH:$HOME/man
export PYTHONPATH=$HOME/lib64/python

but i still get the "command not found error" everytimeI type bzr command; it seems something is wrong with path variables, but i cannot figure it out.
Any suggestion would be really appreciated,
thank you,

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Fabio
Solved:
2010-12-07
Last query:
2010-12-07
Last reply:
2010-12-07
Martin Pool (mbp) said : #1

csh (are you really using plain csh?) uses a different syntax to set environment variables.

See http://www.tcsh.org/EnvironmentVariable

you want something like

  set MANPATH MANPATH:$HOME/man

etc

Fabio (fabio-frairia) said : #2

I tryed the other syntax too, variables seem to be set properly but it still doesnt find the command.... I need to go to /bin and execute as ./bzr to get it running...
:-(

Vincent Ladeuil (vila) said : #3

Did you mean ~/bin instead /bin ?

What does 'bzr version' say ?

What does 'echo $SHELL' say ?

Is 'env' a command known to your shell ? What does it display ?

And above all, what kind of OS are you using there, are you sure you need to install manually instead of relying on the OS to install bzr for you ?

Fabio (fabio-frairia) said : #4

echo $SHELL returns:

/usr/local/cpanel/bin/jailshell

./bin/bzr version says:

Bazaar (bzr) 2.3b4
  Python interpreter: /usr/bin/python 2.4.3
  Python standard library: /usr/lib64/python2.4
  Platform: Linux-2.6.35.7-grsec-x86_64-with-glibc2.2.5
  bzrlib: home/myusername/lib64/python/bzrlib
  Bazaar configuration: home/myusernameE/.bazaar
  Bazaar log file: home/myusername/.bzr.log

Yes, env is recognised by the shell and it returns:

MANPATH=/usr/lib/courier-imap/man::/home/myusername/man
HOSTNAME=cx05.justhost.com
TERM=xterm
SHELL=/usr/local/cpanel/bin/jailshell
HISTSIZE=100000
SSH_CLIENT=93.38.228.0 49232 22
SSH_TTY=/dev/pts/0
USER=myusername
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
MAIL=/var/spool/mail/myusername
PATH=/usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin
INPUTRC=/etc/inputrc
PWD=/home/myusername/bin
SHLVL=1
HOME=/home/myusername
PYTHONPATH=/home/myusername/lib64/python
LOGNAME=myusename
CVS_RSH=ssh
SSH_CONNECTION=93.38.228.0 49232 173.236.33.74 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
HISTTIMEFORMAT=%Y%m%d - %H:%M:%S -
G_BROKEN_FILENAMES=1
_=/bin/env
OLDPWD=/home/myusername

I need to manually install because its a shared hosting and no compiling is allowed and it doesnt seem to be any package manager...

Hope this could help,
thank you,

Fabio (fabio-frairia) said : #5

OK, somehow system was not keeping the path variable.....now I re-edited bash profile file and it seems to work properly!
Thank you anyway!