LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 09-24-2009, 09:26 AM   #1
malli42108
Member
 
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 config.sh Policy.sh
2.sh configure -de
3.make
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 install.man 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
Nutster
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 cpan.org. I installed in on my Ubuntu Linux box with no difficulties.

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

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
malli42108
Member
 
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 15
hi

I installed perl-5.8.8 successfully. with below steps

rm -f config.sh Policy.sh
sh Configure -de
make
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 http://www.perl.com/, the Perl Home Page.

root@andd233 #

how to get 5.8.8 version?
 
Old 10-08-2009, 10:35 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,459

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Use the full path to the perl release you just installed, possibly /usr/local/bin/perl.
 
Old 10-09-2009, 12:41 PM   #5
Nutster
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
malli42108
Member
 
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 15
hi
thanks for your support.
i resolved my issue by giving this.
#/usr/local/bin/perl
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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,Makefile.am,Makefile.in 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 Makefile.in 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


All times are GMT -5. The time now is 05:23 PM.

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