Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 09-24-2009, 09:26 AM   #1
Registered: Jul 2009
Posts: 37

Rep: Reputation: 15
make: Warning: Both `makefile' and `Makefile' exist ?

hi i installed perl-5.8.4 in solaris 8 machine.

all installation process goes correctly.

i approached below steps:

1.rm -f configure -de
4.make test
5.make install

first two steps went correctly. when i give make it shows below info:

root@andd233 # make depend
root@andd233 # make
make: Warning: Both `makefile' and `Makefile' exist
make install.perl STRIPFLAGS= DESTDIR=""
make: Warning: Both `makefile' and `Makefile' exist
Current working directory /usr/perl5/perl-5.8.4
make: Fatal error: Don't know how to make target `wince.h'
Current working directory /usr/perl5/perl-5.8.4
*** Error code 1
make: Fatal error: Command failed for target `install'

i saw makefile & Makefile in /usr/perl5/perl-5.8.4 directory.

when i tried to move these files to some other locations ,again these two files generating.

how to solve this issue? any idea?

Last edited by malli42108; 09-24-2009 at 09:28 AM.
Old 10-01-2009, 06:37 AM   #2
LQ Newbie
Registered: Jun 2009
Location: Greater Toronto Area, Canada
Distribution: Ubuntu 9.04
Posts: 5

Rep: Reputation: 1
First, might I recommend installing 5.10.1 instead? It is available from I installed in on my Ubuntu Linux box with no difficulties.

Second, speaking of, let's look at what their ports page has to say.

Sun Solaris

Starting from Solaris 8 Perl 5 ships standard with Solaris. (Perl 5.005_03 with Solaris 8 (SunOS 5.8), SunOS 5.9 ("Solaris 9") includes Perl 5.6.1, SunOS 5.10 ("Solaris 10") includes Perl 5.8.4 (plus a lot of perl5-porters patches)
  • ActiveState pkgadd, ActiveState formats
  • SiePerl for Solaris by Siemens, contains several modules
  • Sun Freeware pkgadd format. Also a lot of other software available.
  • Prebuilt Perls by Rich Megginson, a special installer is used.
Maybe one of these can help. I have not tested these links, but they look promising.

That said, make usually looks for "makefile", then "Makefile" in the current directory for its script, unless you use the -f option.

It is interesting that both files are appearing, but that should not prevent you from compiling and installing perl. make should be reading "makefile" and ignoring "Makefile". It is giving you a warning in case you are modifying "Makefile" and hoping that those changes will be executed.

I hope these ideas help.
Old 10-08-2009, 09:34 AM   #3
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 15

I installed perl-5.8.8 successfully. with below steps

rm -f
sh Configure -de
make test
make install

all went successfully.

but when i give this command old perl version displayed.
root@andd233 # perl -v

This is perl, version 5.005_03 built for sun4-solaris

Copyright 1987-1999, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at, the Perl Home Page.

root@andd233 #

how to get 5.8.8 version?
Old 10-08-2009, 10:35 AM   #4
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,703

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Use the full path to the perl release you just installed, possibly /usr/local/bin/perl.
Old 10-09-2009, 12:41 PM   #5
LQ Newbie
Registered: Jun 2009
Location: Greater Toronto Area, Canada
Distribution: Ubuntu 9.04
Posts: 5

Rep: Reputation: 1
You might want to change your PATH variable to look at /usr/local/bin (or wherever the new version is) before /usr/bin (or where the original version was). which perl will tell you which perl you are going to execute.
Old 10-24-2009, 09:09 AM   #6
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 15
thanks for your support.
i resolved my issue by giving this.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it mandatory to have the name of the makefile as 'Makefile' for kernal module comp narender.d Linux - Kernel 3 05-29-2009 06:26 AM
what is the meaning of Makefile,, cynthia_thomas Linux - General 3 12-08-2005 05:00 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM
generate Makefile from without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM
Help!!... /usr/src/linux/Makefile does not exist. PhoenixZorn Slackware 4 11-16-2003 08:14 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration