Libjpeg "make install" does not work.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Libjpeg "make install" does not work.
# 1  
Old 03-27-2019
Libjpeg "make install" does not work.

Hello. I recently downloaded, configured and executed make on libjpeg.

Until there all worked well. Then suddenly when executing what shall be the simplest part, it returned this error message:
Quote:
make install
/usr/bin/install -c cjpeg /media/34GB/Arquivos-de-Programas-Linux/Jpeg-6b//bin/cjpeg
/usr/bin/install: cannot create regular file `/media/34GB/Arquivos-de-Programas-Linux/Jpeg-6b//bin/cjpeg': No such file or directory
make: *** [install] Error 1
I have no idea as to why this problem is happening, since cjpeg was successfully built.

This is the installation rules of the makefile :

Code:
# Installation rules:

install: cjpeg djpeg jpegtran rdjpgcom wrjpgcom 
    $(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg
    $(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg
    $(INSTALL_PROGRAM) jpegtran $(bindir)/$(binprefix)jpegtran
    $(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom
    $(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom
    $(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext)
    $(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext)
    $(INSTALL_DATA) $(srcdir)/jpegtran.1 $(mandir)/$(manprefix)jpegtran.$(manext)
    $(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext)
    $(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext)

install-lib: libjpeg.$(A) install-headers
    $(INSTALL_LIB) libjpeg.$(A) $(libdir)/$(binprefix)libjpeg.$(A)

install-headers: jconfig.h
    $(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h
    $(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h
    $(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h
    $(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h

Anyone can see something wrong (and how to fix it)?. If there is nothing wrong there, guess I will try to manually do what the Makefile should have done and see if the program that need it will work.
# 2  
Old 03-28-2019
Now, the error msg seems pretty clear:
Code:
/usr/bin/install: cannot create regular file  `/media/34GB/Arquivos-de-Programas-Linux/Jpeg-6b//bin/cjpeg': No such  file or directory

Does the target directory exist?
# 3  
Old 03-29-2019
Quote:
Originally Posted by RudiC
Now, the error msg seems pretty clear:
Code:
/usr/bin/install: cannot create regular file  `/media/34GB/Arquivos-de-Programas-Linux/Jpeg-6b//bin/cjpeg': No such  file or directory

Does the target directory exist?
Well, no, but isn't this "install" job to do so? I mean, never before I did a "make install" that had issues to create directories.
When I read this message, I thought it was referring to the cjpeg file. Are you sure isn't about it?

Edited: Created a /bin dir and this error message was left behind. A new error message complaining about dir man/man1 showed up. Created that dir and this error message also disappeared. However, the install procedure is not creating and copying the includes and the .a lib file

Last edited by colt; 03-29-2019 at 07:45 PM..
# 4  
Old 03-29-2019
I'm sorry, I can't tell. I don't know nor see your system nor install command / facility / process. If e.g. a cp command fails with a "create" error, it's less probable to be with the source file, but with the target directory / file.
# 5  
Old 03-30-2019
The answer was on the Makefile.
Quote:
make install-lib
solved the issue (after also manually creating the "dir" and the "include" directories)
This User Gave Thanks to colt For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

3. Shell Programming and Scripting

Make scipt except from "Y","y" and "yes" to take [Enter] as being "yes"

This is the script: #!/bin/sh if ; then rm -rf /usr/share/WallpaperChanger; fi if ; then rm -rf /usr/bin/wallch; fi; if ; then rm -rf /usr/share/applications/wallch.desktop; fi if ; then rm -rf /usr/share/doc/wallch; fi if ; then rm -rf /usr/share/man/man1/wallch.1.gz; fi echo "Delete... (4 Replies)
Discussion started by: hakermania
4 Replies

4. Web Development

How to make "enter" work in HTML syntax

I have one syntax to find something from desktop on server, the script is as below, I actually speaking don't know anything in this script. It creates a window, where i get a drop down boxes with folder names given below and a blank box where i have to put the folder name to search. and then I... (2 Replies)
Discussion started by: patilrakesh1984
2 Replies

5. OS X (Apple)

Neither "which" nor "find" commands work

hi there, could use some basic PATH advice, i think, or something find sometimes work, but which hasn't ever seemed to. for years! what am i doing wrong that the commands which and find rarely work? they used to work on the workstations i used ages ago... running 10.5.8 because i... (4 Replies)
Discussion started by: zensnob
4 Replies

6. UNIX for Dummies Questions & Answers

how to install "source" command!/ broken "login.cl"!

Hello, I am new to this forums and this is my first "asking help" message! i have 2 problems: 1- for unknown reasons the "source" command is not avalable in my system (UBUNTU). i can't either see it in my bin directory! 2- again for unknown reasons the "login.cl" file in the home... (0 Replies)
Discussion started by: astrosona
0 Replies

7. Programming

how could i make a program mixed with many "|", "<" and ">"

I have written following code to do: ls -l | wc -w, it works: but when there are not only a single "|", if there are more such as: ls -l | sort -r | sort | sort -r, This program does not work, i want to know how could i deal with it when there are more "|", another situation is that, if it mixes... (2 Replies)
Discussion started by: strugglingman
2 Replies

8. UNIX for Dummies Questions & Answers

"./cofigure" and "make" turmoil

I am a Unix newbie and I downloaded some X11 programs. I have gcc, but I cannot compile the files. I NEED HELP!!!! :confused: (16 Replies)
Discussion started by: gnerd
16 Replies
Login or Register to Ask a Question