1

Topic: [SOLVED] Installation problem Mac running 10.7(Lion)

==== Provide basic information to help troubleshoot ====
- iRedMail version: 0.7.2
- Linux/BSD distribution name and version: Ubuntu 11.04
====

I'm installing a new iRedMail installation but I found a bug when installing via SSH thought a Mac running OS X Lion 10.7.

The Terminal.app application version in the new version 10.7 has a new feature supporting 256 colors in terminal.

This leads to a new environment variable value:

TERM=xterm-256color

The installation scripts only handle xterm, xterm-color and pcconsole.

File iRedMail/conf/global diff:

121a122,123
> elif [ X"${TERM}" == X"xterm-256color" ]; then
>     export TERM='xterm-256color'

After that I can install in a ssh connection made by a Mac machine running OS X Lion.


Reference: http://arstechnica.com/apple/reviews/20 … 0-7.ars/18

...
Terminal also—finally—supports 256 text colors with its new xterm-256color terminal type. Users of terminal-based text editors will surely approve.
...

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED] Installation problem Mac running 10.7(Lion)

It was fixed weeks ago. New code in conf/global (iRedMail-0.7.3-rc2):

# TERM.
if [ X"${TERM}" == X"" ]; then
    export TERM='xterm'
fi

It simply reads your global variable, if not set, use 'xterm' instead.

P.S. I use Mac OS X + Terminal.app everyday, for about 2 years. smile

3

Re: [SOLVED] Installation problem Mac running 10.7(Lion)

ZhangHuangbin wrote:

It was fixed weeks ago. New code in conf/global (iRedMail-0.7.3-rc2):

# TERM.
if [ X"${TERM}" == X"" ]; then
    export TERM='xterm'
fi

It simply reads your global variable, if not set, use 'xterm' instead.

P.S. I use Mac OS X + Terminal.app everyday, for about 2 years. smile

I see, I was using the lastest stable version 0.7.2.