What's the problem it might be?


#1

Hello,

When I tried to make install, it saids:

test -z “/dist/bin” || /bin/mkdir -p “/dist/bin”
/bin/mkdir: cannot create directory /dist': Permission denied make[2]: *** [install-binSCRIPTS] Error 1 make[2]: Leaving directory/home/.cantabrigian/yusun/autoconf-2.61/bin’
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/.cantabrigian/yusun/autoconf-2.61/bin’
make: *** [install-recursive] Error 1

Does anyone know how to resolve this problem?

Thanks!


#2

We don’t have write access to / (root directory). You should be using ~/dist if that’s where all your stuff is. ~ means it’s your home directory, which is like saying /home/yusun (or whatever your username is).

-Scott


#3

Thanks, Scott.

I did what you said, but it seemed there is still a permission problem.

test -z “/bin” || /bin/mkdir -p “/bin”
/usr/bin/install -c ‘autom4te’ ‘/bin/autom4te’
/usr/bin/install: cannot create regular file /bin/autom4te': Permission denied /usr/bin/install -c 'autoconf' '/bin/autoconf' /usr/bin/install: cannot create regular file/bin/autoconf’: Permission denied
/usr/bin/install -c ‘autoheader’ ‘/bin/autoheader’
/usr/bin/install: cannot create regular file /bin/autoheader': Permission denied /usr/bin/install -c 'autoreconf' '/bin/autoreconf' /usr/bin/install: cannot create regular file/bin/autoreconf’: Permission denied
/usr/bin/install -c ‘ifnames’ ‘/bin/ifnames’
/usr/bin/install: cannot create regular file /bin/ifnames': Permission denied /usr/bin/install -c 'autoscan' '/bin/autoscan' /usr/bin/install: cannot create regular file/bin/autoscan’: Permission denied
/usr/bin/install -c ‘autoupdate’ ‘/bin/autoupdate’
/usr/bin/install: cannot create regular file /bin/autoupdate': Permission denied make[2]: *** [install-binSCRIPTS] Error 1 make[2]: Leaving directory/home/.cantabrigian/yusun/autoconf-2.61/bin’
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/.cantabrigian/yusun/autoconf-2.61/bin’
make: *** [install-recursive] Error 1

My steps are:

Creat the directory ‘dist’ in /yusun/[Here] first

Then I connected with the server by the PuTTY, after the $, I input:

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.bz2
tar -xjf autoconf-2.61.tar.bz2
cd autoconf-2.61
./configure ¨Cprefix= ~/dist
make
make install

I must do something wrong. ;(


#4

Same problem, you’re trying to write to /

Your path should be ~/bin

-Scott


#5

Thanks. But… where to set the path ‘~/bin’? In the config file of ‘autoconf’ or somewhere in the config file of the ‘make’?


#6

Never mind, I know how to make it now.

Thanks.