1. 程式人生 > >異常/usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h'

異常/usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h'

     出現下列異常:

 /usr/bin/install -c -m 644 jconfig.h /usr/local/jpeg6/include/jconfig.h

/usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h': No such file or directory

make: *** [install-headers] Error 1

   

     原來要建立對應的目錄,命令如下:

mkdir -p /usr/local/jpeg6/bin
mkdir /usr/local/jpeg6/lib
mkdir /usr/local/jpeg6/inculde
mkdir /usr/local/jpeg6/man
mkdir /usr/local/jpeg6/man/man1

    繼續安裝原來的方式安裝就OK啦。

   ./configure --prefix=/usr/local/jpeg6

   make && make install