freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Puzzel
Hi there,

 

Im trying use freeradius with oracle database.

I've used guide on this site
http://wiki.freeradius.org/modules/Rlm_sql_oracle to compile oracle driver.

 

I'e installed oracle instant client from rpm packages (basic + devel)

 

When i use 

 

./configure --with-oracle-lib-dir=/usr/lib/oracle/11.2/client64/lib
--with-oracle-include-dir=/usr/lib/oracle/11.2/client64

 

i got this output

 

checking for oci.h... checking for gcc... gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

no

configure: WARNING: oracle headers not found.  Use
--with-oracle-include-dir=.

configure: WARNING: silently not building rlm_sql_oracle.

configure: WARNING: FAILURE: rlm_sql_oracle requires: oci.h.

configure: creating ./config.status

 

Could you help me with that?

 

Tnx a lot

Thomas

 

 

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread A . L . M . Buxey
Hi,

>I'e installed oracle instant client from rpm packages (basic + devel)

okay. if you've done this rather than manually installing from Oracle then
its most likely that the paths are different...you will need to check where
your Oracle files have been installed and use those paths instead

alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Fajar A. Nugraha
On Thu, Oct 10, 2013 at 2:22 PM, Puzzel  wrote:

>  --with-oracle-include-dir=/usr/lib/oracle/11.2/client64
>
> ** **
>
>

> configure: WARNING: oracle headers not found.  Use
> --with-oracle-include-dir=.configure: WARNING: silently not
> building rlm_sql_oracle.
>
> configure: WARNING: FAILURE: rlm_sql_oracle requires: oci.h.
>
> configure: creating ./config.status
>
> ** **
>
> Could you help me with that?
>
> **
>

Does oci.h exist on that directory?

-- 
Fajar
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

RE: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Puzzel
Yes, you are right, the oracle inlcude path was in the different location
(/usr/include/oracle/11.2/client64 not /usr/lib...).

Now i've got another problem.

./configure --with-oracle-lib-dir=/usr/lib/oracle/11.2/client64/lib
--with-oracle-include-dir=/usr/include/oracle/11.2/client64
checking for oci.h... checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
yes
configure: WARNING: oracle libraries not found.  Use
--with-oracle-lib-dir=.
configure: WARNING: silently not building rlm_sql_oracle.
configure: WARNING: FAILURE: rlm_sql_oracle requires: libclntsh libnnz.
configure: creating ./config.status
config.status: creating Makefile

In the folder i've made ln links

ls -la /usr/lib/oracle/11.2/client64/lib/
razem 151112
drwxr-xr-x. 2 root root 4096 10-10 10:14 .
drwxr-xr-x. 4 root root 4096 10-09 14:46 ..
lrwxrwxrwx. 1 root root   17 10-10 10:14 libclntsh -> libclntsh.so.11.1
lrwxrwxrwx. 1 root root   17 10-09 14:46 libclntsh.so ->
libclntsh.so.11.1
-rw-r--r--. 1 root root 48797739 2009-08-15  libclntsh.so.11.1
-rw-r--r--. 1 root root15365 2009-08-15  libheteroxa11.so
lrwxrwxrwx. 1 root root   11 10-10 10:09 libnnz -> libnnz11.so
-rw-r--r--. 1 root root  787 2009-08-15  libnnz11.so
lrwxrwxrwx. 1 root root   15 10-09 14:46 libocci.so -> libocci.so.11.1
-rw-r--r--. 1 root root  1261302 2009-08-15  libocci.so.11.1
-rw-r--r--. 1 root root 89382994 2009-08-15  libociei.so
-rw-r--r--. 1 root root   165157 2009-08-15  libocijdbc11.so
-rw-r--r--. 1 root root   997069 2009-08-15  libsqora.so.11.1
-rw-r--r--. 1 root root  1996228 2009-08-15  ojdbc5.jar
-rw-r--r--. 1 root root  2111220 2009-08-15  ojdbc6.jar
-rw-r--r--. 1 root root  1656280 2009-08-15  orai18n.jar
-rw-r--r--. 1 root root82983 2009-08-15  orai18n-mapping.jar
-rw-r--r--. 1 root root   298388 2009-08-15  ottclasses.zip
-rw-r--r--. 1 root root37807 2009-08-15  xstreams.jar

but it didn't help.

-Original Message-
From: freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org
[mailto:freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org]
On Behalf Of a.l.m.bu...@lboro.ac.uk
Sent: Thursday, October 10, 2013 9:41 AM
To: FreeRadius users mailing list
Subject: Re: freeradius 2.2.0 on Fedora and oracle module

Hi,

>I'e installed oracle instant client from rpm packages (basic + 
> devel)

okay. if you've done this rather than manually installing from Oracle then
its most likely that the paths are different...you will need to check where
your Oracle files have been installed and use those paths instead

alan
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Arran Cudbard-Bell

On 10 Oct 2013, at 09:22, Puzzel  wrote:

> Yes, you are right, the oracle inlcude path was in the different location
> (/usr/include/oracle/11.2/client64 not /usr/lib...).
> 
> Now i've got another problem.
> 
> ./configure --with-oracle-lib-dir=/usr/lib/oracle/11.2/client64/lib
> --with-oracle-include-dir=/usr/include/oracle/11.2/client64
> checking for oci.h... checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> yes
> configure: WARNING: oracle libraries not found.  Use
> --with-oracle-lib-dir=.
> configure: WARNING: silently not building rlm_sql_oracle.
> configure: WARNING: FAILURE: rlm_sql_oracle requires: libclntsh libnnz.
> configure: creating ./config.status
> config.status: creating Makefile


Please use version 3.0.0 the configure script is much better.

http://freeradius.org/download.html

Arran Cudbard-Bell 
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


RE: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Puzzel
Tnx Arran,

./configure went fine and then created all.mk file.
What to do next? "make" don't work. I'm sorry i'm not very much experienced
in linux.

-Original Message-
From: freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org
[mailto:freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org]
On Behalf Of Arran Cudbard-Bell
Sent: Thursday, October 10, 2013 11:04 AM
To: FreeRadius users mailing list
Subject: Re: freeradius 2.2.0 on Fedora and oracle module


On 10 Oct 2013, at 09:22, Puzzel  wrote:

> Yes, you are right, the oracle inlcude path was in the different 
> location
> (/usr/include/oracle/11.2/client64 not /usr/lib...).
> 
> Now i've got another problem.
> 
> ./configure --with-oracle-lib-dir=/usr/lib/oracle/11.2/client64/lib
> --with-oracle-include-dir=/usr/include/oracle/11.2/client64
> checking for oci.h... checking for gcc... gcc checking whether the C 
> compiler works... yes checking for C compiler default output file 
> name... a.out checking for suffix of executables...
> checking whether we are cross compiling... no checking for suffix of 
> object files... o checking whether we are using the GNU C compiler... 
> yes checking whether gcc accepts -g... yes checking for gcc option to 
> accept ISO C89... none needed yes
> configure: WARNING: oracle libraries not found.  Use 
> --with-oracle-lib-dir=.
> configure: WARNING: silently not building rlm_sql_oracle.
> configure: WARNING: FAILURE: rlm_sql_oracle requires: libclntsh libnnz.
> configure: creating ./config.status
> config.status: creating Makefile


Please use version 3.0.0 the configure script is much better.

http://freeradius.org/download.html

Arran Cudbard-Bell  FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Arran Cudbard-Bell

On 10 Oct 2013, at 10:31, Puzzel  wrote:

> Tnx Arran,
> 
> ./configure went fine and then created all.mk file.
> What to do next? "make" don't work. I'm sorry i'm not very much experienced
> in linux.

You need to do make in the top level directory not in the module directory. 
all.mk is a make include not an actual make file.

It should pick up that rlm_sql_oracle has been configured (even if it's not
marked as stable) and build it.

-Arran

Arran Cudbard-Bell 
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


RE: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Puzzel
When i do make at top level, i'm getting this output:

make
Makefile:10: *** Missing 'Make.inc' Run './configure [options]' and retry".
Stop.

-Original Message-
From: freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org
[mailto:freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org]
On Behalf Of Arran Cudbard-Bell
Sent: Thursday, October 10, 2013 12:50 PM
To: FreeRadius users mailing list
Subject: Re: freeradius 2.2.0 on Fedora and oracle module


On 10 Oct 2013, at 10:31, Puzzel  wrote:

> Tnx Arran,
> 
> ./configure went fine and then created all.mk file.
> What to do next? "make" don't work. I'm sorry i'm not very much 
> experienced in linux.

You need to do make in the top level directory not in the module directory. 
all.mk is a make include not an actual make file.

It should pick up that rlm_sql_oracle has been configured (even if it's not
marked as stable) and build it.

-Arran

Arran Cudbard-Bell  FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Arran Cudbard-Bell

On 10 Oct 2013, at 12:34, "Puzzel"  wrote:

> When i do make at top level, i'm getting this output:
> 
> make
> Makefile:10: *** Missing 'Make.inc' Run './configure [options]' and retry".
> Stop.

- Missing - Something is not there that should be.
- 'Make.inc' - The thing that should be there but isn't.
- Run - Execute a command.
- './configure' - The command you should execute.
- '[options]' - Any additional options you want to add like --prefix or 
--with-shared-libs=no.
- and - There's something additional you have to do as well as running the 
previous command.
- retry - Repeat the previous command which generated this error message.

*sigh*

-Arran


> 
> -Original Message-
> From: freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org
> [mailto:freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org]
> On Behalf Of Arran Cudbard-Bell
> Sent: Thursday, October 10, 2013 12:50 PM
> To: FreeRadius users mailing list
> Subject: Re: freeradius 2.2.0 on Fedora and oracle module
> 
> 
> On 10 Oct 2013, at 10:31, Puzzel  wrote:
> 
>> Tnx Arran,
>> 
>> ./configure went fine and then created all.mk file.
>> What to do next? "make" don't work. I'm sorry i'm not very much 
>> experienced in linux.
> 
> You need to do make in the top level directory not in the module directory. 
> all.mk is a make include not an actual make file.
> 
> It should pick up that rlm_sql_oracle has been configured (even if it's not
> marked as stable) and build it.
> 
> -Arran
> 
> Arran Cudbard-Bell  FreeRADIUS Development Team
> 
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Arran Cudbard-Bell 
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


RE: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Puzzel
I've made configure at top level ./configure
--with-oracle-lib-dir=/usr/lib/oracle/11.2/client64/lib
--with-oracle-include-dir=/usr/include/oracle/11.2/client64

Then i made make, but i still can't find rlm_sql_oracle.so file. :/

-Original Message-
From: freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org
[mailto:freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org]
On Behalf Of Arran Cudbard-Bell
Sent: Thursday, October 10, 2013 1:51 PM
To: FreeRadius users mailing list
Subject: Re: freeradius 2.2.0 on Fedora and oracle module


On 10 Oct 2013, at 12:34, "Puzzel"  wrote:

> When i do make at top level, i'm getting this output:
> 
> make
> Makefile:10: *** Missing 'Make.inc' Run './configure [options]' and
retry".
> Stop.

- Missing - Something is not there that should be.
- 'Make.inc' - The thing that should be there but isn't.
- Run - Execute a command.
- './configure' - The command you should execute.
- '[options]' - Any additional options you want to add like --prefix or
--with-shared-libs=no.
- and - There's something additional you have to do as well as running the
previous command.
- retry - Repeat the previous command which generated this error message.

*sigh*

-Arran


> 
> -Original Message-
> From: 
> freeradius-users-bounces+puzzel1982=gmail@lists.freeradius.org
> [mailto:freeradius-users-bounces+puzzel1982=gmail.com@lists.freeradius
> .org]
> On Behalf Of Arran Cudbard-Bell
> Sent: Thursday, October 10, 2013 12:50 PM
> To: FreeRadius users mailing list
> Subject: Re: freeradius 2.2.0 on Fedora and oracle module
> 
> 
> On 10 Oct 2013, at 10:31, Puzzel  wrote:
> 
>> Tnx Arran,
>> 
>> ./configure went fine and then created all.mk file.
>> What to do next? "make" don't work. I'm sorry i'm not very much 
>> experienced in linux.
> 
> You need to do make in the top level directory not in the module
directory. 
> all.mk is a make include not an actual make file.
> 
> It should pick up that rlm_sql_oracle has been configured (even if 
> it's not marked as stable) and build it.
> 
> -Arran
> 
> Arran Cudbard-Bell  FreeRADIUS Development 
> Team
> 
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> 
> -
> List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html

Arran Cudbard-Bell  FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Arran Cudbard-Bell

On 10 Oct 2013, at 13:39, Puzzel  wrote:

> I've made configure at top level ./configure
> --with-oracle-lib-dir=/usr/lib/oracle/11.2/client64/lib
> --with-oracle-include-dir=/usr/include/oracle/11.2/client64
> 
> Then i made make, but i still can't find rlm_sql_oracle.so file. :/

run the configure script in src/modules/rlm_sql/drivers/rlm_sql_oracle and post 
the output and config.log file.

-Arran

Arran Cudbard-Bell 
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread Alan DeKok
Puzzel wrote:
> I've made configure at top level ./configure
> --with-oracle-lib-dir=/usr/lib/oracle/11.2/client64/lib
> --with-oracle-include-dir=/usr/include/oracle/11.2/client64

  If the build is having issues, you should READ the output of
"configure".  It tells you what it's building, and what it's not
building.  Just look for "oracle" in the output.  It's not hard.

> Then i made make, but i still can't find rlm_sql_oracle.so file. :/

  Again, READ the output of "make".  Look for oracle.  It's not hard.

  You're like someone who's sitting next to a road sign, and claiming
he's lost.  Well... look up.  You're not lost.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: freeradius 2.2.0 on Fedora and oracle module

2013-10-10 Thread John Dennis
On 10/10/2013 08:39 AM, Puzzel wrote:
> I've made configure at top level ./configure
> --with-oracle-lib-dir=/usr/lib/oracle/11.2/client64/lib
> --with-oracle-include-dir=/usr/include/oracle/11.2/client64
> 
> Then i made make, but i still can't find rlm_sql_oracle.so file. :/

Try reading the output of the build process, it will tell you what went
wrong.

Hint:

Redirection:

do_something 2>&1 | tee -a some_file



-- 
John
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html