librelist archives

« back to archive

答复: [click] Cannot build the click router for user level

答复: [click] Cannot build the click router for user level

From:
Liu, Zhuotao
Date:
2014-12-06 @ 18:07
Hi Antonie,

Thanks a lot for your answer. In fact, I want to build kernel mode.

One strange thing is that if I did not enable kernel mode, the user level 
mode can be installed correctly. Once I add enable-linuxkernel in the 
configure option, I cannot install user level any more.

Thanks,
Zhuotao
________________________________
发件人: click@librelist.com [click@librelist.com] 代表 Antonie Henning 
[antoniehenning@yahoo.com]
发送时间: 2014年12月6日 10:04
收件人: click@librelist.com
主题: Re: [click] Cannot build the click router for user level

Hi Zhuotao,

I don't have a definitive answer but had cases before with permission 
errors as root. You can check whether the immutable bit is not perhaps set
in the destination directory or file. Check with lsattr and change with 
chattr -i.

Also if you are compiling for userlevel only then --disable-linuxmodule to
simplify the install. You can always come back and enable the kernel 
module later.

Hope it helps.
A

________________________________
From: "Liu, Zhuotao" <zliu48@illinois.edu>
To: click@librelist.com
Sent: Friday, December 5, 2014 10:27 PM Subject: [click] Cannot build the 
click router for user level



Dear Click folks,

This is Zhuotao, a graduate student in University of Illinois.

Currently I try to use the Click router for my research project. Thanks a 
lot for your clear explanation in the Github. But I have some issues for 
building the Click.

While I run ./configure, I run the ./configure with kernel mode enabled. 
My kernel version is 3.2.0-64-generic. Configuration seems OK as no errors
are thrown out. Then I run "sudo make install" to build the Click, the 
machine gives me an error:

make[1]: Entering directory `/usr/local/zhliu/Downloads/click/userlevel'
  INSTALL /home/rss/zhliu/lib/libclick.a
/usr/bin/install: cannot create regular file 
`/home/rss/zhliu/lib/libclick.a': Permission denied
make[1]: *** [install-lib] Error 1
make[1]: Leaving directory `/usr/local/zhliu/Downloads/click/userlevel'
make: *** [install-userlevel] Error 2

I am the root user in fact. Why I do not have the permission for creating 
this file?

I do a search on the web, a similar problem has been countered: 
http://pdos.csail.mit.edu/pipermail/click/2008-May/006945.html

But I did not find an answer for this post as well.

Thanks a lot for help. I appreciate you answer.
Zhuotao

答复: [click] Cannot build the click router for user level

From:
Liu, Zhuotao
Date:
2014-12-06 @ 18:34
Hi Antonie,

I run "lsattr", it gives me an error:
lsattr: Inappropriate ioctl for device While reading flags on ./libclicktool.a
lsattr: Inappropriate ioctl for device While reading flags on ./libclick.a

Running chattr produces the same error. 

I looked up the website, it says "You can't check or set attributes on an 
NFS-mounted filesystem, for example." In fact my file system is 
nfs-mounted. So in this scenario, Click router will not be able to built? 
Or I may need other ways to work around it? 

Thanks,
Zhuotao

________________________________________
发件人: click@librelist.com [click@librelist.com] 代表 Antonie Henning 
[antoniehenning@yahoo.com]
发送时间: 2014年12月6日 10:04
收件人: click@librelist.com
主题: Re: [click] Cannot build the click router for user level

Hi Zhuotao,

I don't have a definitive answer but had cases before with permission 
errors as root. You can check whether the immutable bit is not perhaps set
in the destination directory or file. Check with lsattr and change with 
chattr -i.

Also if you are compiling for userlevel only then --disable-linuxmodule to
simplify the install. You can always come back and enable the kernel 
module later.

Hope it helps.
A

________________________________
From: "Liu, Zhuotao" <zliu48@illinois.edu>
To: click@librelist.com
Sent: Friday, December 5, 2014 10:27 PM Subject: [click] Cannot build the 
click router for user level



Dear Click folks,

This is Zhuotao, a graduate student in University of Illinois.

Currently I try to use the Click router for my research project. Thanks a 
lot for your clear explanation in the Github. But I have some issues for 
building the Click.

While I run ./configure, I run the ./configure with kernel mode enabled. 
My kernel version is 3.2.0-64-generic. Configuration seems OK as no errors
are thrown out. Then I run "sudo make install" to build the Click, the 
machine gives me an error:

make[1]: Entering directory `/usr/local/zhliu/Downloads/click/userlevel'
  INSTALL /home/rss/zhliu/lib/libclick.a
/usr/bin/install: cannot create regular file 
`/home/rss/zhliu/lib/libclick.a': Permission denied
make[1]: *** [install-lib] Error 1
make[1]: Leaving directory `/usr/local/zhliu/Downloads/click/userlevel'
make: *** [install-userlevel] Error 2

I am the root user in fact. Why I do not have the permission for creating 
this file?

I do a search on the web, a similar problem has been countered: 
http://pdos.csail.mit.edu/pipermail/click/2008-May/006945.html

But I did not find an answer for this post as well.

Thanks a lot for help. I appreciate you answer.
Zhuotao