Zend Framework On Dreamhost

software development

#1

I’m following this guide on installing zend framework: http://wiki.dreamhost.com/Zend_framework

For the past two days I can’t seem to figure out what I’m doing wrong…

when typing “zf show version” to check whether I installed it correctly, I get this error:

Please someone answer! Thanks!!!

I’m not really a programmer, I do know html and some basic php though, but I absolutely need the zend framework on my hosting.

P.S. When I first login to the server via putty I get this, so maybe I already screwed up the bash profile?

[code] __
/ /__ ____ ___ ____
/ / _ / _ \/ _/_ /
//_,/ ./_,_///
/_/
Welcome to lapaz.dreamhost.com

Any malicious and/or unauthorized activity is strictly forbidden.
All activity may be logged by DreamHost Web Hosting.

Last login: Sat Jun 25 06:12:32 2011 from 213.172.228.150
: command not found
: octal number out of range
: command not found
[lapaz]$
[/code]


#2

what’s the contents of your .profile? looks like you’ve edited it and saved it with non-ascii encoding or some non-unix line feeds


#3

Hey bobocat, thanks a lot for your response.

Here are the contents of my .bash_profile:

[code]# ~/.bash_profile: executed by bash(1) for login shells.

umask 002
PS1=’[\h]$ ’

alias zf=/home/anxietyattack06/zend_framework/bin/zf.sh[/code]


#4

did you add that alias using notepad++ or other editor which defaults to utf-8 encoding? I’m just guessing from previous experience, but it seems like an encoding issue. if you remove your .bash_profile, do your login errors go away? if so, try remaking it from scratch using nano or something


#5

Excellent! Looks like we fixed the .bash_profile now. The zf show version is still not working though:

[code] __
/ /__ ____ ___ ____
/ / _ / _ \/ _/_ /
//_,/ ./_,_///
/_/
Welcome to lapaz.dreamhost.com

Any malicious and/or unauthorized activity is strictly forbidden.
All activity may be logged by DreamHost Web Hosting.

Last login: Sun Jun 26 03:17:22 2011 from 213.172.228.150
[lapaz]$ zf show version
-bash: /home/anxietyattack06/zend_framework/bin/zf.sh: /bin/sh^M: bad interpreter: No such file or directory
[lapaz]$
[/code]


#6

unfortunately, i can’t help with that part.


#7

Oh, you already did. I actually started from scratch and modified all the files with nano and it works now.

Thanks!


#8

ah, great then!