PATH problem

2008-11-10 Thread Albert Shih
Hi all

I've PATH problem with a perl package (I don't knwon anything about
perl).

I run rt (3.8) under apache22 + mod_perl2 and on some p5 librairie I've got
message like 

Command 'dot' not found in /bin, /usr/bin at 
/usr/local/lib/perl5/site_perl/5.8.8/GraphViz.pm 

and yes «dot» is not in /bin or /usr/bin but it's in

/usr/local/bin

So...how can I tell  who ?(maybe www)  to try to find «dot» in 
/usr/local/bin

Regards.
-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Lun 10 nov 2008 12:05:08 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PATH problem

2008-11-10 Thread Jerry McAllister
On Mon, Nov 10, 2008 at 12:08:05PM +0100, Albert Shih wrote:

 Hi all
 
 I've PATH problem with a perl package (I don't knwon anything about
 perl).
 
 I run rt (3.8) under apache22 + mod_perl2 and on some p5 librairie I've got
 message like 
 
 Command 'dot' not found in /bin, /usr/bin at 
 /usr/local/lib/perl5/site_perl/5.8.8/GraphViz.pm 
 
 and yes «dot» is not in /bin or /usr/bin but it's in
 
   /usr/local/bin
 
 So...how can I tell  who ?(maybe www)  to try to find «dot» in 
 /usr/local/bin

Whenever you use some command or address some file in a script or within a 
program, you should use the full path - starting with '/' so instead of 
lcalling it 'd' in the script or program, call it '/usr/local/bin/dot'

You can also explicitly add /usr/local/bin to your path and/or your
script's path.  Something like

set path=$path:/usr/local/bin
or set 
path=/bin:/usr/bin:/usr/local/bin:/usr/local/lib/perl5/site_perl/5.8.8/GraphViz.pm

or whatever you want the path to be.

The syntax may vary some between different shells.

jerry

 
 Regards.
 -- 
 Albert SHIH
 SIO batiment 15
 Observatoire de Paris Meudon
 5 Place Jules Janssen
 92195 Meudon Cedex
 Heure local/Local time:
 Lun 10 nov 2008 12:05:08 CET
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PATH problem

2008-11-10 Thread Albert Shih
 Le 10/11/2008 à 11:10:02-0500, Jerry McAllister a écrit
 On Mon, Nov 10, 2008 at 12:08:05PM +0100, Albert Shih wrote:
 
  Hi all
  
 
 Whenever you use some command or address some file in a script or within a 
 program, you should use the full path - starting with '/' so instead of 
 lcalling it 'd' in the script or program, call it '/usr/local/bin/dot'
 
 You can also explicitly add /usr/local/bin to your path and/or your
 script's path.  Something like
 
 set path=$path:/usr/local/bin
 or set 
 path=/bin:/usr/bin:/usr/local/bin:/usr/local/lib/perl5/site_perl/5.8.8/GraphViz.pm
 
 or whatever you want the path to be.
 
 The syntax may vary some between different shells.

OK.

ButI don't write any problem.

Maybe my question is not very clear

The p5 package work in shell, because the PATH is in the shell. 

But when I use the application throught the web it's not working. But I
don't known how to tell apache ? mod_perl ? the PATH. 


And I don't want to change the perl package because that's mean on every
update I must make that little modification (event I don't known where to make
that modification). That's mean the day I'm in vacation the web application
can be broken if my collegue make a update.


Regards.
-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26
Heure local/Local time:
Lun 10 nov 2008 21:30:25 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PATH problem

2008-11-10 Thread Mel
On Monday 10 November 2008 21:36:43 Albert Shih wrote:

 But when I use the application throught the web it's not working. But I
 don't known how to tell apache ? mod_perl ? the PATH.

Apache.
Check the shell script /usr/local/sbin/envvars. In short, any file 
in /usr/local/etc/apache22/envvars.d is sourced into the start up environment 
of apache, through /usr/local/etc/rc.d/apache22 start up script. Unless a 
module or script explicitly cleans the environment before forking an external 
program, the variabels set at start up are preserved.

The following should work for you:
echo export PATH=$PATH  /usr/local/etc/apache22/envvars.d/PATH

You may want to clean out the path a bit more, pending your security policies.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PATH problem

2008-11-10 Thread Matthew Seaman

Albert Shih wrote:


Maybe my question is not very clear

The p5 package work in shell, because the PATH is in the shell. 


But when I use the application throught the web it's not working. But I
don't known how to tell apache ? mod_perl ? the PATH. 


If you're using mod_perl2, then Apache will default to setting up the
environment perl sees as if perl was running as a separate CGI script.
See: 


http://perl.apache.org/docs/2.0/user/config/config.html#C_SetupEnv_

(defaults to 'On')

You can modify the perl environment from httpd.conf using PerlSetEnv
or PerlPassEnv. See: 


http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSetEnv_
http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPassEnv_

Assuming you do mean $PATH -- the executable search path -- that should 
be sufficient to fix your problem.  If you're really after $PERL5INC -- 
the path to search for perl modules -- while you can use PerlSetEnv to 
set that, it's special-cased not to be passed through when running in 
taint-checking mode.  It's generally cleaner to have a startup.pl 
script you require from the Apache conf, and that can have a BEGIN { } 
block where you modify @INC before loading modules.  See


http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlConfigRequire_

or (preferably):

http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPostConfigRequire_

which does much the same thing as a perl 'require' statement -- the 
difference between the two being that PerlPostConfigRequire happens 
somewhat later in the configuration process.


Cheers,

Matthew


--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: PATH problem

2008-11-10 Thread Albert Shih
 Le 10/11/2008 à 22:35:44+0100, Mel a écrit
 On Monday 10 November 2008 21:36:43 Albert Shih wrote:
 
  But when I use the application throught the web it's not working. But I
  don't known how to tell apache ? mod_perl ? the PATH.
 
Thanks for your help

 Check the shell script /usr/local/sbin/envvars. In short, any file 
 in /usr/local/etc/apache22/envvars.d is sourced into the start up environment 
 of apache, through /usr/local/etc/rc.d/apache22 start up script. Unless a 
 module or script explicitly cleans the environment before forking an external 
 program, the variabels set at start up are preserved.
 
 The following should work for you:
 echo export PATH=$PATH  /usr/local/etc/apache22/envvars.d/PATH
 
 You may want to clean out the path a bit more, pending your security policies.

Sh.t it's not working.

Event I put 

PATH.env

it's not working.

I'm going to do something very bad ;-)

ln -s /usr/local/bin/dot /usr/bin

...it's the binary the p5 script search...


OK...ok..it's very very bad.

Thanks for your (all of you) help.

Regards.
-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Lun 10 nov 2008 22:55:34 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PATH problem

2008-11-10 Thread Albert Shih
 Le 10/11/2008 à 21:53:32+, Matthew Seaman a écrit
 Albert Shih wrote:
 
  Maybe my question is not very clear
  
  The p5 package work in shell, because the PATH is in the shell. 
  
  But when I use the application throught the web it's not working. But I
  don't known how to tell apache ? mod_perl ? the PATH. 
 
 If you're using mod_perl2, then Apache will default to setting up the
 environment perl sees as if perl was running as a separate CGI script.
 See: 
 
 http://perl.apache.org/docs/2.0/user/config/config.html#C_SetupEnv_
 
 (defaults to 'On')
 
 You can modify the perl environment from httpd.conf using PerlSetEnv
 or PerlPassEnv. See: 
 
 http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSetEnv_
 http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPassEnv_
 
 Assuming you do mean $PATH -- the executable search path -- that should 
 be sufficient to fix your problem.  If you're really after $PERL5INC -- 
 the path to search for perl modules -- while you can use PerlSetEnv to 
 set that, it's special-cased not to be passed through when running in 
 taint-checking mode.  It's generally cleaner to have a startup.pl 
 script you require from the Apache conf, and that can have a BEGIN { } 
 block where you modify @INC before loading modules.  See
 
 http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlConfigRequire_
 
 or (preferably):
 
 http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPostConfigRequire_
 
 which does much the same thing as a perl 'require' statement -- the 
 difference between the two being that PerlPostConfigRequire happens 
 somewhat later in the configuration process.

YE.

It's working.

Lots of thanks.

Regards.



-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Lun 10 nov 2008 23:14:44 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-13 Thread Boris Samorodov
On Mon, 11 Feb 2008 19:11:32 +0100 (CET) Wojciech Puchar wrote:

  serafina# dmesg -a | grep -A1 ABI
  Additional ABI support:
  linux
 
  serafina# /etc/rc.d/abi restart
  Additional ABI support: linux.
 

 magic starts here. sorry.

:-)

  serafina# /compat/linux/bin/sh
  sh-3.00# ls
  ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF
  file OS ABI invalid

I think the result is expected. By running /compat/linux/bin/sh you
don't change much:
-
# /compat/linux/bin/sh   
sh-3.00# file `which ls`
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for 
FreeBSD 7.0 (700055), dynamically linked (uses shared libs), FreeBSD-style, 
stripped
sh-3.00# 
-

Maybe you want to run:
-
# chroot /compat/linux /bin/sh
sh-3.00# ls
bin  etc  lib  media  mnt  opt  proc  sbin  selinux  srv  sys  usr  var
sh-3.00#
-

If you want to do a linux developing you may concider installing
linux_dist-gentoo. Linux_base is not good for it.


WBR
-- 
bsam
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Steve Franks
So my problem is that things are expecting libs in
/usr/compat/linux/lib instead of /usr/compat/linux/usr/lib, and when
they don't find it in linux/lib they go straight to the FreeBSD
version?

So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what?

Steve

On Feb 11, 2008 12:06 PM, Reid Linnemann [EMAIL PROTECTED] wrote:
 Written by Michael Ross on 02/11/08 12:42

  Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann [EMAIL PROTECTED]:
 
 
  It is not finding the FreeBSD versions of libraries. There is no
  /usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading
  library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if
  it's branded.
 
 
  [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1
  brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No
  such file or directory
 
  [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/lib/librt.so.1
  File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0).
 
  [EMAIL PROTECTED] ~]$ brandelf /usr/lib/librt.so.1
  File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9).
 
 
  Michael

 Okay, I need to proofread. /usr/compat/linux/lib/librt.so.1 is the right
 path. I've never seen a librt in FreeBSD, but I guess I'm wrong. I've
 dug a little deeper and seen other people work around this by linking
 /usr/compat/linux/usr/lib/librt.so.1 to the actual lib at

 /usr/compat/linux/lib/librt.so.1




-- 
Steve Franks, KE7BTE
Staff Engineer
La Palma Devices, LLC
http://www.lapalmadevices.com
(520) 312-0089
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Reid Linnemann
Written by Michael Ross on 02/11/08 12:42
 Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann [EMAIL PROTECTED]:
 
 
 It is not finding the FreeBSD versions of libraries. There is no
 /usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading
 library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if
 it's branded.
 
 
 [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1
 brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No
 such file or directory
 
 [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/lib/librt.so.1
 File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0).
 
 [EMAIL PROTECTED] ~]$ brandelf /usr/lib/librt.so.1
 File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9).
 
 
 Michael

Okay, I need to proofread. /usr/compat/linux/lib/librt.so.1 is the right
path. I've never seen a librt in FreeBSD, but I guess I'm wrong. I've
dug a little deeper and seen other people work around this by linking
/usr/compat/linux/usr/lib/librt.so.1 to the actual lib at
/usr/compat/linux/lib/librt.so.1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross

Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann [EMAIL PROTECTED]:



It is not finding the FreeBSD versions of libraries. There is no
/usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading
library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if
it's branded.



[EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1
brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No such  
file or directory


[EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/lib/librt.so.1
File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0).

[EMAIL PROTECTED] ~]$ brandelf /usr/lib/librt.so.1
File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9).


Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Wojciech Puchar


serafina# dmesg -a | grep -A1 ABI
Additional ABI support:
linux

serafina# /etc/rc.d/abi restart
Additional ABI support: linux.



magic starts here. sorry.


serafina# /compat/linux/bin/sh
sh-3.00# ls
ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS 
ABI invalid



Michael


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Wojciech Puchar


if not set it and rerun /etc/rc.d/abi


serafina# kldload linux

serafina# /etc/rc.d/abi start
Additional ABI support:.



should be
Additional ABI support:linux.

you miss

linux_enable=YES

in rc.conf
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Wojciech Puchar

sh-3.00$ ls
ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF
file OS ABI invalid
sh-3.00$

Sothat don't seem right.  How do I get
/compat/linux/bin/sh to work right?  New .shrc file?  Something I
missed?


[EMAIL PROTECTED] ~]$ /compat/linux/bin/sh
sh-3.00$ ls
b compat dvd  etc   libexec mnt   mnt4  proc 
sbin  usr
bin   COPYRIGHT  dvd2 home  lost+found  mnt2  NOBACKUP 
razor-agent.log  sys   var
boot  deventropy  lib   media   mnt3  pen   root 
tmp   zip

sh-3.00$ /compat/linux/bin/ls
b compat dvd  etc   libexec mnt   mnt4  proc 
sbin  usr
bin   COPYRIGHT  dvd2 home  lost+found  mnt2  NOBACKUP 
razor-agent.log  sys   var
boot  deventropy  lib   media   mnt3  pen   root 
tmp   zip



looks ok on my system.

sh works on yours - as you were able to put a command.


sh-3.00$ ls
ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF
file OS ABI invalid


means that your /compat/linux/lib/librt.so.1 is missing or ldconfig on 
linux subdirs not done.


did you have

linux_enable=YES in your rc.conf

if not set it and rerun /etc/rc.d/abi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Reid Linnemann
Written by Steve Franks on 02/11/08 13:56
 So my problem is that things are expecting libs in
 /usr/compat/linux/lib instead of /usr/compat/linux/usr/lib, and when
 they don't find it in linux/lib they go straight to the FreeBSD
 version?
 
 So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what?
 
 Steve
 

Please don't top-post. The crux of the problem, as I understand it, is
that if the linuxulator tries to load /compat/linux/x/y/libz.so and
can't find it, it then tries to load /x/y/libz.so, I'm not certain why.
Ideally, your linux binaries would be linked correctly to their support
libs. In lieu of that, symlinking missing libs can suffice.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Reid Linnemann
Written by Steve Franks on 02/11/08 12:11
 I think my problem lies elsewhere:  linux  abi started, but no
 difference!  I have the linux .so files right in compat/linux/usr/lib,
 but it always finds the freeBSD versions first!
 
 Steve
 
 sh-3.00$ kldstat
 Id Refs AddressSize Name
  1   19 0xc040 926ed4   kernel
  21 0xc0d27000 5a74 snd_t4dwave.ko
  32 0xc0d2d000 4a5acsound.ko
  41 0xc0d78000 22c98radeon.ko
  52 0xc0d9b000 10e98drm.ko
  61 0xc0dac000 6a1c4acpi.ko
  71 0xc304a000 7000 linprocfs.ko
  81 0xc3051000 22000linux.ko
 sh-3.00$ sudo /etc/rc.d/abi start
 Additional ABI support: linux.
 sh-3.00$ ls
 ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF
 file OS ABI invalid

It is not finding the FreeBSD versions of libraries. There is no
/usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading
library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if
it's branded.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Steve Franks
I think my problem lies elsewhere:  linux  abi started, but no
difference!  I have the linux .so files right in compat/linux/usr/lib,
but it always finds the freeBSD versions first!

Steve

sh-3.00$ kldstat
Id Refs AddressSize Name
 1   19 0xc040 926ed4   kernel
 21 0xc0d27000 5a74 snd_t4dwave.ko
 32 0xc0d2d000 4a5acsound.ko
 41 0xc0d78000 22c98radeon.ko
 52 0xc0d9b000 10e98drm.ko
 61 0xc0dac000 6a1c4acpi.ko
 71 0xc304a000 7000 linprocfs.ko
 81 0xc3051000 22000linux.ko
sh-3.00$ sudo /etc/rc.d/abi start
Additional ABI support: linux.
sh-3.00$ ls
ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF
file OS ABI invalid
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross
Am 11.02.2008, 18:53 Uhr, schrieb Wojciech Puchar  
[EMAIL PROTECTED]:



 if not set it and rerun /etc/rc.d/abi


serafina# kldload linux

serafina# /etc/rc.d/abi start
Additional ABI support:.



should be
Additional ABI support:linux.

you miss

linux_enable=YES

in rc.conf


If I linux_enable in rc.conf, the ABI linux support is there.
- is it unreasonable to assume it _should_ be there if I kldload the  
module and restart abi afterwards? -


Nevertheless:

serafina# grep linux_enable /etc/rc.conf
linux_enable=YES

serafina# dmesg -a | grep -A1 ABI
Additional ABI support:
 linux

serafina# /etc/rc.d/abi restart
Additional ABI support: linux.

serafina# /compat/linux/bin/sh
sh-3.00# ls
ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS  
ABI invalid



Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross
Am 11.02.2008, 18:20 Uhr, schrieb Wojciech Puchar  
[EMAIL PROTECTED]:



did you have

linux_enable=YES in your rc.conf

if not set it and rerun /etc/rc.d/abi


serafina# kldload linux

serafina# /etc/rc.d/abi start
Additional ABI support:.

serafina# /compat/linux/bin/sh
sh-3.00# ls
ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS  
ABI invalid


sh-3.00# uname -a
Linux serafina.local 2.4.2 FreeBSD 7.0-PRERELEASE #0: Fri Feb  8 21:57:13  
CET 2008 i686 i686 i386 GNU/Linux


serafina# locate -d: librt.so.1
/usr/compat/linux/lib/librt.so.1
/usr/compat/linux/lib/obsolete/linuxthreads/librt.so.1
/usr/lib/librt.so.1
/usr/obj/usr/src/lib/librt/librt.so.1
/usr/obj/usr/src/tmp/usr/lib/librt.so.1



Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Steve Franks
I think I have a major problem with my linux compatibility.  It
started when a third party setup program complained about ELF ABI
types on a shared library, so I did a little experiment:

 /compat/linux/bin/sh
sh-3.00$ ls
ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF
file OS ABI invalid
sh-3.00$

Sothat don't seem right.  How do I get
/compat/linux/bin/sh to work right?  New .shrc file?  Something I
missed?

Thanks,
Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross

Am 11.02.2008, 20:56 Uhr, schrieb Steve Franks [EMAIL PROTECTED]:

So should I be fixing my path, or linking linux/usr/lib to linux/lib, or  
what?



On Feb 11, 2008 12:06 PM, Reid Linnemann [EMAIL PROTECTED] wrote:

work around this by linking
/usr/compat/linux/usr/lib/librt.so.1 to the actual lib at
/usr/compat/linux/lib/librt.so.1



ln -s /usr/compat/linux/lib/librt.so.1 /usr/compat/linux/usr/lib/librt.so.1

works for me.


I am not sure though if and where-to to file a PR (let alone where to look  
for the source to patch).


Just for the record:
serafina# pkg_info | grep linux | awk '{print $1}'
linux-expat-1.95.8
linux-fontconfig-2.2.3_7
linux-xorg-libs-6.8.2_5
linux_base-fc-4_10


Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


$PATH problem

2007-03-16 Thread Jonathan Horne
i recently switched from KDE to XFCE4.  underneath, i also switch my DM from 
kdm to slim.  now that slim is operating, my paths have changed significantly 
when i log in via the GUI login.  my current paths:

[EMAIL PROTECTED] ~]$ echo $PATH
./:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin

conversly, if i log into this system via ssh or console, i get this (much 
better):

[EMAIL PROTECTED] ~]$ echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/jhorne/bin

where can i got to change this so that i always have the second set of paths 
even when im in xfce?  thanks!

jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: $PATH problem

2007-03-16 Thread youshi10

On Fri, 16 Mar 2007, Jonathan Horne wrote:


i recently switched from KDE to XFCE4.  underneath, i also switch my DM from 
kdm to slim.  now that slim is operating, my paths have changed significantly 
when i log in via the GUI login.  my current paths:

[EMAIL PROTECTED] ~]$ echo $PATH
./:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin

conversly, if i log into this system via ssh or console, i get this (much 
better):

[EMAIL PROTECTED] ~]$ echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/jhorne/bin

where can i got to change this so that i always have the second set of paths 
even when im in xfce?  thanks!

jonathan


Not sure about slim but I would assume that it's seriously monkeying around 
with your path variables, so I'd check the config file for the DM.

-Garrett

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Path problem

2006-03-31 Thread Gary Schenk

OK, guys, I need help. what obvious thing am I missing here.

Fresh install of seamonkey from a fresh ports update. I try to start 
seamonkey:


 seamonkey
seamonkey: Command not found.

OK. Now this:
 /usr/X11R6/bin/seamonkey

Seamonkey starts.

OK, must be the path:
 echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:
/usr/local/bin:/usr/X11R6/bin:/home/gwschenk/bin

It looks like it is in the path to me. Any ideas?

Gary

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Path problem

2006-03-31 Thread Micah

Gary Schenk wrote:

OK, guys, I need help. what obvious thing am I missing here.

Fresh install of seamonkey from a fresh ports update. I try to start 
seamonkey:


  seamonkey
seamonkey: Command not found.

OK. Now this:
  /usr/X11R6/bin/seamonkey

Seamonkey starts.

OK, must be the path:
  echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:
/usr/local/bin:/usr/X11R6/bin:/home/gwschenk/bin

It looks like it is in the path to me. Any ideas?

Gary


Try rehash

HTH,
Micah
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Path problem

2006-03-31 Thread Beech Rintoul
On Friday 31 March 2006 13:28, Gary Schenk wrote:
 OK, guys, I need help. what obvious thing am I missing here.

 Fresh install of seamonkey from a fresh ports update. I try to start

 seamonkey:
   seamonkey

 seamonkey: Command not found.

 OK. Now this:
   /usr/X11R6/bin/seamonkey

 Seamonkey starts.

 OK, must be the path:
   echo $PATH

 /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:
 /usr/local/bin:/usr/X11R6/bin:/home/gwschenk/bin

 It looks like it is in the path to me. Any ideas?

 Gary

Try typing rehash (without the quotes) from your favorite shell.

Beech

-- 

---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Mangohealth
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - XanGo - http://www.mangohealth.org
---













pgpDYy7YRigv5.pgp
Description: PGP signature


Re: Path problem

2006-03-31 Thread Gary Schenk

Beech Rintoul wrote:

On Friday 31 March 2006 13:28, Gary Schenk wrote:

OK, guys, I need help. what obvious thing am I missing here.

Fresh install of seamonkey from a fresh ports update. I try to start

seamonkey:
  seamonkey

seamonkey: Command not found.

OK. Now this:
  /usr/X11R6/bin/seamonkey

Seamonkey starts.

OK, must be the path:
  echo $PATH

/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:
/usr/local/bin:/usr/X11R6/bin:/home/gwschenk/bin

It looks like it is in the path to me. Any ideas?

Gary


Try typing rehash (without the quotes) from your favorite shell.

Beech



Argh! I'm an idiot! I knew it was obvious. Thanks.

Gary
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Path problem

2006-03-31 Thread Beech Rintoul
On Friday 31 March 2006 13:44, Gary Schenk wrote:
 Beech Rintoul wrote:
  On Friday 31 March 2006 13:28, Gary Schenk wrote:
  OK, guys, I need help. what obvious thing am I missing here.
 
  Fresh install of seamonkey from a fresh ports update. I try to start
 
  seamonkey:
seamonkey
 
  seamonkey: Command not found.
 
  OK. Now this:
/usr/X11R6/bin/seamonkey
 
  Seamonkey starts.
 
  OK, must be the path:
echo $PATH
 
  /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:
  /usr/local/bin:/usr/X11R6/bin:/home/gwschenk/bin
 
  It looks like it is in the path to me. Any ideas?
 
  Gary
 
  Try typing rehash (without the quotes) from your favorite shell.
 
  Beech

 Argh! I'm an idiot! I knew it was obvious. Thanks.

 Gary

No problem, we've all been there.

Beech

-- 

---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Mangohealth
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - XanGo - http://www.mangohealth.org
---













pgpdH34CLFJly.pgp
Description: PGP signature


Path problem

2002-11-04 Thread Tom Vollmer
Whomever-

During the process of compiling my own kernel, I have an issue of the make
utility not being able to find if_fxp.c and if_sis.c.  Both exist in the
appropriate place in the file system.  The version of freeBSD I am using is
4.6.  Any suggestions?

Tom Vollmer


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Path problem

2002-11-04 Thread Wayne Pascoe
Tom Vollmer [EMAIL PROTECTED] writes:

 Whomever-
 
 During the process of compiling my own kernel, I have an issue of the make
 utility not being able to find if_fxp.c and if_sis.c.  Both exist in the
 appropriate place in the file system.  The version of freeBSD I am using is
 4.6.  Any suggestions?

Couple of things... 

1. How are you compiling your kernel? By doing a make kernel in
/usr/src or config KERNNAME then cd ../../compile/KERNNAME and doing
make? If the latter, try a make depend first

2. Please post the exact error here and we'll see what we can do :)

-- 
- Wayne Pascoe 
Wageslaves - Who do you want to make rich
today?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Path problem

2002-11-04 Thread Kent Stewart


Tom Vollmer wrote:

Whomever-

During the process of compiling my own kernel, I have an issue of the make
utility not being able to find if_fxp.c and if_sis.c.  Both exist in the
appropriate place in the file system.  The version of freeBSD I am using is
4.6.  Any suggestions?


It sounds like you did a make without doing both a config and a make 
depend.

Kent


Tom Vollmer


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message

.




--
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Path problem

2002-11-04 Thread Wayne Pascoe
Tom Vollmer [EMAIL PROTECTED] writes:

 is a CODE 1 and the other two error lines indicate that
 ../../dev/fxp/if_fxp.c and ../../sys/pci/if.sis.c do not exists.  When
 perform a Find to locate the files, they appear to be in the correct place
 in the file system.  Can a source file marked with inappropriate rights
 cause this?

As per my previous request, please send me the error exactly as it
appears. I need some context to investigate this.

-- 
- Wayne Pascoe 
WINDOWS: Where do you want to go today?
LINUX: Where do you want to go tomorrow?
FreeBSD: Are you guys coming or what?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message