librelist archives

« back to archive

"unknown element class" error of enable-userlevel

"unknown element class" error of enable-userlevel

From:
=?ks_c_5601-1987?B?x+O9xb+1?=
Date:
2014-03-25 @ 01:45
Hello,

With configuration of click with these options, I put my elements in 
elements/local directory.
--enable-userlevel --disable-linuxmodule --enable-local --prefix=$HOME/dev

Since I had to use netlink to transmit data from userlevel application to 
click, both sides need sudo.
However, it didn’t work as following:
$sudo click myconfig.click
<stdin>:4: unknown element class ‘MYCUSTOM_ELEMENT’
…

With userlevel/click, It worked.
$sudo CLICK_HOME/userlevel/click myconfig.click

What should I do to run click(using sudo) with custom elements?

Regards,
Cinyoung.

Re: [click] "unknown element class" error of enable-userlevel

From:
Eddie Kohler
Date:
2014-03-25 @ 02:26
You didn't `make install` your new version of click.



On Mon, Mar 24, 2014 at 9:45 PM, 허신영 <cyhur@etri.re.kr> wrote:

>  Hello,
>
>
>
> With configuration of click with these options, I put my elements in
> elements/local directory.
>
> --enable-userlevel --disable-linuxmodule --enable-local --prefix=$HOME/dev
>
>
>
> Since I had to use netlink to transmit data from userlevel application to
> click, both sides need sudo.
>
> However, it didn’t work as following:
>
> $sudo click myconfig.click
>
> <stdin>:4: unknown element class ‘MYCUSTOM_ELEMENT’
>
> …
>
>
>
> With userlevel/click, It worked.
>
> $sudo CLICK_HOME/userlevel/click myconfig.click
>
>
>
> What should I do to run click(using sudo) with custom elements?
>
>
>
> Regards,
>
> Cinyoung.
>

Re: [click] "unknown element class" error of enable-userlevel

From:
허신영
Date:
2014-03-25 @ 04:40
Thanks for reply.
I do make install.

This is same while I loading custom package.
Click cant’ find required package *.uo file in CLICKPATH or ‘usr/local/lib’
Is this caused by my configurations, such as –prefix, --enable-userleve, 
and so on.

Regards,
Cinyoung.

From: click@librelist.com [mailto:click@librelist.com] On Behalf Of Eddie Kohler
Sent: Tuesday, March 25, 2014 11:27 AM
To: click@librelist.com
Subject: Re: [click] "unknown element class" error of enable-userlevel

You didn't `make install` your new version of click.


On Mon, Mar 24, 2014 at 9:45 PM, 허신영 
<cyhur@etri.re.kr<mailto:cyhur@etri.re.kr>> wrote:
Hello,

With configuration of click with these options, I put my elements in 
elements/local directory.
--enable-userlevel --disable-linuxmodule --enable-local --prefix=$HOME/dev

Since I had to use netlink to transmit data from userlevel application to 
click, both sides need sudo.
However, it didn’t work as following:
$sudo click myconfig.click
<stdin>:4: unknown element class ‘MYCUSTOM_ELEMENT’
…

With userlevel/click, It worked.
$sudo CLICK_HOME/userlevel/click myconfig.click

What should I do to run click(using sudo) with custom elements?

Regards,
Cinyoung.

Re: [click] "unknown element class" error of enable-userlevel

From:
Antonie Henning
Date:
2014-03-25 @ 08:52
This sometime happens when running 'make install' as a normal user. When 
attempting to install click and libclick.a permission is denied. Try 
running 'sudo make install'

Hope it helps



On Tuesday, March 25, 2014 6:41 AM, 허신영 <cyhur@etri.re.kr> wrote:
 
Thanks for reply.
I do make install.
 
This is same while I loading custom package.
Click cant’ find required package *.uo file in CLICKPATH or ‘usr/local/lib’
Is this caused by my configurations, such as –prefix, --enable-userleve, 
and so on.
 
Regards,
Cinyoung.
 
From:click@librelist.com [mailto:click@librelist.com] On Behalf Of Eddie Kohler
Sent: Tuesday, March 25, 2014 11:27 AM
To: click@librelist.com
Subject: Re: [click] "unknown element class" error of enable-userlevel
 
You didn't `make install` your new version of click.
 
 
On Mon, Mar 24, 2014 at 9:45 PM, 허신영<cyhur@etri.re.kr> wrote:
Hello,

>With configuration of click with these options, I put my elements in 
elements/local directory. 
>--enable-userlevel --disable-linuxmodule --enable-local --prefix=$HOME/dev

>Since I had to use netlink to transmit data from userlevel application to
click, both sides need sudo.
>However, it didn’t work as following:
>$sudo click myconfig.click
><stdin>:4: unknown element class ‘MYCUSTOM_ELEMENT’
>…

>With userlevel/click, It worked.
>$sudo CLICK_HOME/userlevel/click myconfig.click

>What should I do to run click(using sudo) with custom elements?

>Regards, 
>Cinyoung.

Re: [click] "unknown element class" error of enable-userlevel

From:
허신영
Date:
2014-03-26 @ 07:56
Thanks for the sharing tip.

I think the problem was location of shared libraries.
I just set my home directory to configuration prefix.

After I re-configure with default prefix(usr/local/lib) and try ‘sudo make
install’, click can find my custom elements in sudo mode.


From: click@librelist.com [mailto:click@librelist.com] On Behalf Of 
Antonie Henning
Sent: Tuesday, March 25, 2014 5:52 PM
To: click@librelist.com
Subject: Re: [click] "unknown element class" error of enable-userlevel

This sometime happens when running 'make install' as a normal user. When 
attempting to install click and libclick.a permission is denied. Try 
running 'sudo make install'

Hope it helps

On Tuesday, March 25, 2014 6:41 AM, 허신영 
<cyhur@etri.re.kr<mailto:cyhur@etri.re.kr>> wrote:
Thanks for reply.
I do make install.

This is same while I loading custom package.
Click cant’ find required package *.uo file in CLICKPATH or ‘usr/local/lib’
Is this caused by my configurations, such as –prefix, --enable-userleve, 
and so on.

Regards,
Cinyoung.

From: click@librelist.com<mailto:click@librelist.com> 
[mailto:click@librelist.com] On Behalf Of Eddie Kohler
Sent: Tuesday, March 25, 2014 11:27 AM
To: click@librelist.com<mailto:click@librelist.com>
Subject: Re: [click] "unknown element class" error of enable-userlevel

You didn't `make install` your new version of click.


On Mon, Mar 24, 2014 at 9:45 PM, 허신영 
<cyhur@etri.re.kr<mailto:cyhur@etri.re.kr>> wrote:
Hello,

With configuration of click with these options, I put my elements in 
elements/local directory.
--enable-userlevel --disable-linuxmodule --enable-local --prefix=$HOME/dev

Since I had to use netlink to transmit data from userlevel application to 
click, both sides need sudo.
However, it didn’t work as following:
$sudo click myconfig.click
<stdin>:4: unknown element class ‘MYCUSTOM_ELEMENT’
…

With userlevel/click, It worked.
$sudo CLICK_HOME/userlevel/click myconfig.click

What should I do to run click(using sudo) with custom elements?

Regards,
Cinyoung.