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=path.

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 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=path.
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 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 puzzel1...@gmail.com 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=path.
 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 a.cudba...@freeradius.org 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 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 puzzel1...@gmail.com 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 puzzel1...@gmail.com 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 a.cudba...@freeradius.org 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 a.cudba...@freeradius.org 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