Solved

compile / install postfix on solaris 9

Posted on 2004-08-31
9
2,698 Views
Last Modified: 2013-12-27
Dear,
i have one workstation ultra60 with solaris 9 apache2/mod_perl2/perl-585/PHP4 installed.
I'd like to install a mail server with Postfix.
Following the instructions, I removed the sendmail package that was coming with the OS by pkgrm, and compiled postfix with
./configure -DHAS_MYSQL= . . . (some thing like that)

but then, when run the make commad, I got this error

Falal error: make cannot target "updates"
Fatal error: make cannot target "error"

so, can you help me out?.
I;ve been wandering the internet for days and came up with nothing.

Thanks in advance



0
Comment
Question by:valleytech
  • 4
  • 3
9 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 11948272
For start you need to have a working C complier, you can download gcc (and other GNU
tools) from:

http://sunfreeware.com/

please download gcc +make+  zlib +_ libgcc + glib + openssl + libtool + libiconv
+autoconf + automake + flex + boson from the about site.

and set PATH LD_LIBRARY_PATH to used them, eg:
PATH=/usr/local/bin:$PATH  #to make sure that you are using the GNU tools
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
export PATH LD_LIBRARY_PATH

then run
configure
make

Have a look at the instructions in the following docs to learn how to install:
http://www.postfix.org/INSTALL.html
http://ultra.litpixel.com:84/articles/rswp/frameset.html

0
 

Author Comment

by:valleytech
ID: 11959355
thanks for your reply...
however, another problem came out.
after executing the "make" command , i got this:
ld:Fatal error Symbol Refefrence Error
No outputs written to location

I;ve already done what you advised me to do. Here is my PATH
usr/dt/bin
usr/sbin
usr/openwin/bin
usr/local/bin
usr/local/sbin
bin
/usr/bin
/usr/ccs/bin
/usr/ucb

thanks a lot for helping me
0
 
LVL 38

Expert Comment

by:yuzh
ID: 11959661
You should use: ABSOLUTIVE path, eg:
usr/dt/bin    should change to: /usr/dt/bin
bin                                        /bin

fix your PATH first, and make sure that you set LD_LIBRARY_PATH you use the required
libs.

Have you download the gcc compiler and the other tools mentioned in my 1st comment?
you need them to make postfix to work for you !

Good luck!
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:valleytech
ID: 12147809
Dear,
My PATH is excatly like what you have suggested!

My GCC ccompiler's version is 4.3.
When I set LD_LIBRARY_PATH and compiled Postfix, I got this "DO NOT SET LD_LIBRARY_PATH"
Here is my configuration for postfix prior to compiling:
make -f Makefile.ini makefiles \
CCARGS=-DHAS_DB = "-I/usr/local/Berkeley.4.2/include" \
              AUXLIBS="-L/usr/local/Bekeley.4.2/lib -ldb"

After that, i unset LD_LIBRARY_PATH, the configuration was execuated neatly. However, with the "make" command, I got this "Symbol referencing error"

0
 
LVL 38

Expert Comment

by:yuzh
ID: 12157194
Please have a look at the following information page:
http://www.agamemnon.net/documents/postfix/faq.html#db

Full FAQ:
http://www.agamemnon.net/documents/postfix/faq.html

Did you remember to set:
PATH=/usr/local/bin:$PATH  #to make sure that you are using the GNU tools

and also check your Makefile(s) to make sure that you are using the GNU gcc, and make.

Do you want me to re-open this question for you?
0
 

Author Comment

by:valleytech
ID: 12669782
can you please re-open this question...

here is my PATH:
/usr/sbin :/usr/bin:/usr/dt/bin:/usr/ucb:/usr/ccs/bin:/usr/local/bin

all of those packages have been installed.!!!...
I still got that error and started to get frustrated!!

How can I check the Makefiles ( you meaned the Makefiles from postfix source code folder??)

Thanks in advance
0
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 12671211
No, problem, I unaccept the question for you.

    >>I still got that error and started to get frustrated!!
    >> How can I check the Makefiles.
    The Makefile should be under the source code dir, created
by configure script, check it after you run configure.
   

   Please post the error messages.

yuzh

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now