LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2013, 08:47 PM   #1
chakra1
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Rep: Reputation: Disabled
Question Error "make: *** No rule to make target `install'. Stop.


I ran `make` for freetype-2.5.0.1. It ran fine as shown below. But when I am trying to run `make install` I am getting the below error.
[root@sandbox freetype-2.5.0.1]# make install
make: *** No rule to make target `install'. Stop.

[root@sandbox freetype-2.5.0.1]# make
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -o objs/ftsystem.o src/base/ftsystem.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -o objs/ftdebug.o src/base/ftdebug.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -o objs/ftinit.o src/base/ftinit.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftbase.o ./src/base/ftbase.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftbbox.o src/base/ftbbox.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftbdf.o src/base/ftbdf.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftbitmap.o src/base/ftbitmap.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftcid.o src/base/ftcid.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftfstype.o src/base/ftfstype.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftgasp.o src/base/ftgasp.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftglyph.o src/base/ftglyph.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftgxval.o src/base/ftgxval.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftlcdfil.o src/base/ftlcdfil.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftmm.o src/base/ftmm.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftotval.o src/base/ftotval.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftpatent.o src/base/ftpatent.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftpfr.o src/base/ftpfr.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftstroke.o src/base/ftstroke.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftsynth.o src/base/ftsynth.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/fttype1.o src/base/fttype1.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftwinfnt.o src/base/ftwinfnt.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/base -o objs/ftxf86.o src/base/ftxf86.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/truetype -o objs/truetype.o ./src/truetype/truetype.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/type1 -o objs/type1.o ./src/type1/type1.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/cff -o objs/cff.o ./src/cff/cff.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/cid -o objs/type1cid.o ./src/cid/type1cid.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/pfr -o objs/pfr.o ./src/pfr/pfr.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/type42 -o objs/type42.o ./src/type42/type42.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/winfonts -o objs/winfnt.o ./src/winfonts/winfnt.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/pcf -o objs/pcf.o ./src/pcf/pcf.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/bdf -o objs/bdf.o ./src/bdf/bdf.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/sfnt -o objs/sfnt.o ./src/sfnt/sfnt.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/autofit -o objs/autofit.o ./src/autofit/autofit.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/pshinter -o objs/pshinter.o ./src/pshinter/pshinter.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/raster -o objs/raster.o ./src/raster/raster.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/smooth -o objs/smooth.o ./src/smooth/smooth.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/cache -o objs/ftcache.o ./src/cache/ftcache.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/gzip -o objs/ftgzip.o ./src/gzip/ftgzip.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/lzw -o objs/ftlzw.o ./src/lzw/ftlzw.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -o objs/ftbzip2.o ./src/bzip2/ftbzip2.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/psaux -o objs/psaux.o ./src/psaux/psaux.c
cc -I./objs -I./builds/ansi -I./include -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -I./src/psnames -o objs/psnames.o ./src/psnames/psmodule.c
rm -f ./objs/libfreetype.a
ar -r objs/libfreetype.a ./objs/ftsystem.o ./objs/ftdebug.o ./objs/ftinit.o ./objs/ftbase.o ./objs/ftbbox.o ./objs/ftbdf.o ./objs/ftbitmap.o ./objs/ftcid.o ./objs/ftfstype.o ./objs/ftgasp.o ./objs/ftglyph.o ./objs/ftgxval.o ./objs/ftlcdfil.o ./objs/ftmm.o ./objs/ftotval.o ./objs/ftpatent.o ./objs/ftpfr.o ./objs/ftstroke.o ./objs/ftsynth.o ./objs/fttype1.o ./objs/ftwinfnt.o ./objs/ftxf86.o ./objs/truetype.o ./objs/type1.o ./objs/cff.o ./objs/type1cid.o ./objs/pfr.o ./objs/type42.o ./objs/winfnt.o ./objs/pcf.o ./objs/bdf.o ./objs/sfnt.o ./objs/autofit.o ./objs/pshinter.o ./objs/raster.o ./objs/smooth.o ./objs/ftcache.o ./objs/ftgzip.o ./objs/ftlzw.o ./objs/ftbzip2.o ./objs/psaux.o ./objs/psnames.o
ar: creating objs/libfreetype.a

NOTE: `ls` gives the following list of files and directories under freetype-2.5.0.1

[root@sandbox freetype-2.5.0.1]# ls
autogen.sh ChangeLog ChangeLog.21 ChangeLog.23 configure docs Jamfile Makefile objs README.git version.sed
builds ChangeLog.20 ChangeLog.22 config.mk devel include Jamrules modules.cfg README src vms_make.com
 
Old 11-01-2013, 08:56 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

Rep: Reputation: Disabled
Something must be wrong with the Makefile. There definitely should be an "install" target.

Did you run ./configure prior to running make? Have you tried running ./autogen.sh?
 
Old 11-01-2013, 08:59 PM   #3
chakra1
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Yes I did run `./configure --prefix=/usr` before running make
 
Old 11-01-2013, 09:04 PM   #4
chakra1
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Running autogen.sh failed with the below message:

[root@sandbox freetype-2.5.0.1]# sh ./autogen.sh
: command not found2:
: command not found11:
'/autogen.sh: line 12: syntax error near unexpected token `
'/autogen.sh: line 12: `run ()
 
Old 11-01-2013, 09:10 PM   #5
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

Rep: Reputation: Disabled
Strange. I just downloaded freetype 2.5.0.1, and was able to run ./autogen.sh without any error messages.

I guess it could be a shell issue. Which Linux distribution are you using?
 
Old 11-01-2013, 09:18 PM   #6
chakra1
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
I am running Centos 6.X on Oracle VirtualBox VM running on Win 7 host. I have successfully installed matplotlib-1.3.1 package for doing some numerical analysis in Python, but the matplotlib.pyplot doesn't show the output plot. I posted the question in a forum and they suggested to debug using `pyplot.savefig('fig.png')` instead of `pyplot.show()` which I have been using. I had installed `libpng-devel and freetype-devel` prior to my matplotlib installation as part of pre-requisites. However when I ran the aforesaid `pyplot.savefig('fig.png')` module, a "fig.png" file is saved but it's not opening or showing the picture (used command ~]$ less fig.png as well as installed ImageMagick but doesn't seem to work) . So I tried installing libpng-1.6.6 which needs freetype-2.5.0.1 as well as zlib and pkg-config.

Last edited by chakra1; 11-01-2013 at 09:20 PM.
 
Old 11-01-2013, 09:28 PM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

Rep: Reputation: Disabled
I can see no obvious reason why the autogen script shouldn't work on a recent version of CentOS. Perhaps you're missing another component.

Could you post the output generated by this command:
Code:
bash -x ./autogen.sh
 
Old 11-01-2013, 09:34 PM   #8
chakra1
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
This is the error:

[root@sandbox freetype-2.5.0.1]# bash -x ./autogen.sh
+ $'\r'
: command not found2:
+ $'\r'
: command not found11:
'/autogen.sh: line 12: syntax error near unexpected token `
'/autogen.sh: line 12: `run ()
 
Old 11-01-2013, 09:47 PM   #9
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

Rep: Reputation: Disabled
Is it possible that you've accidentally downloaded the zip file intended for use on the Windows platform?

Windows text files end each line with the carriage return and newline characters, while Unix/Linux uses just newline. The "\r" implies the existence of a carriage return character in the autogen.sh file.

You should download one of the tar archives and recompile.
 
Old 11-01-2013, 09:49 PM   #10
chakra1
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
I downloaded the ft2501.zip file. Is it for Windows? I generally use the tar.gz distribution. But here only .zip version was available. Here is the link http://sourceforge.net/projects/freetype/

Last edited by chakra1; 11-01-2013 at 09:51 PM.
 
Old 11-01-2013, 09:53 PM   #11
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

Rep: Reputation: Disabled
.tar.gz and .tar.bz2 files are available here.
 
1 members found this post helpful.
Old 11-01-2013, 10:07 PM   #12
chakra1
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Everything went fine except 1 error, which probably due to some residual left from previous installation. I think probably doing a `make clean` would have resolved that error too! Anyway, from the below message it seems probably it has ignored that error. Thanks a lot.

rmdir /usr/include/freetype2/freetype/internal
rmdir: failed to remove `/usr/include/freetype2/freetype/internal': No such file or directory
make: [install] Error 1 (ignored)
/usr/bin/install -c -m 644 ./builds/unix/ft2unix.h \
/usr/include/ft2build.h
/usr/bin/install -c -m 644 ./builds/unix/ftconfig.h \
/usr/include/freetype2/freetype/config/ftconfig.h
/usr/bin/install -c -m 644 /usr/lib/hue/freetype-2.5.0/objs/ftmodule.h \
/usr/include/freetype2/freetype/config/ftmodule.h
/usr/bin/install -c -m 755 ./builds/unix/freetype-config \
/usr/bin/freetype-config
/usr/bin/install -c -m 644 ./builds/unix/freetype2.m4 \
/usr/share/aclocal/freetype2.m4
/usr/bin/install -c -m 644 ./builds/unix/freetype2.pc \
/usr/lib/pkgconfig/freetype2.pc
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
get this error when runnign make ***** "no rule to make target 'config'. stop" procfs Linux - General 4 05-12-2013 11:25 AM
make: *** No rule to make target `install-headers'. Stop. NightHorse Linux - Newbie 9 06-21-2009 06:16 AM
Error: "make: *** No rule to make target `folder'. Stop." shri19 Linux - Kernel 2 05-27-2009 09:08 AM
Error "make: *** No rule to make target `install'. Stop." help Ohmn Mandriva 8 07-02-2004 08:02 PM


All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration