Solved

compile / install postfix on solaris 9

Posted on 2004-08-31
9
2,700 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

910 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

19 Experts available now in Live!

Get 1:1 Help Now