pfSense Support Subscription

Author Topic: PFsense...  (Read 4012 times)

0 Members and 1 Guest are viewing this topic.

Offline afamnu

  • Newbie
  • *
  • Posts: 19
    • View Profile
PFsense...
« on: January 08, 2012, 01:57:53 am »
hello my freinds
im new in PFsense , i install PFsense 1.2.2 and then i made full updates for 2.0.1 release
version , and i tryed to install the python by this command ( pkg_add -r
python ) telling me this msg ( Unable to get
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.1-release/Latest/python.tbz:
File -8unavailable (e.g., file not found, no access)   ) as i see there's
problem with packages-8.1 i entered to the site and i see its packages name
changed to packages-8.2-release ...... plz any one can help , i appreciate

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9954
    • View Profile
Re: PFsense...
« Reply #1 on: January 08, 2012, 06:41:09 am »
http://Http://FTP:// is not a valid link  ;)

Remove the FTP:// part and try again

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8097
    • View Profile
Re: PFsense...
« Reply #2 on: January 08, 2012, 07:25:49 am »
Hmm I thought this was supposed to be fixed in 2.0.1 but it isn't for me either (also an upgrade). I thought they were switching to a local repo mirror instead?  :-\

Fixed path to FreeBSD packages repo for 8.1

Anyway you need to use the FreeBSD ftp archive for 8.1 to ensure compatibilty:

Code: [Select]
pkg_add -r ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-8.1-release/All/python-2.6,2.tbz

Offline afamnu

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: PFsense...
« Reply #3 on: January 08, 2012, 07:27:35 am »
thank you for replying .. but once i press on pkg_add -r python
see this msg

pkg_add -r python
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.1-release/Latest/python.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.1-release/Latest/python.tbz' by URL

i entered to this website and i see that instead packages-8.1-release it was packages-8.2-release ,, so i guess i must updates the sources in pfsense , but i dont know how to do that ,,,,,,,

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8097
    • View Profile
Re: PFsense...
« Reply #4 on: January 08, 2012, 07:36:12 am »
You need to specify the complete URL because it has changed like I outlined above.

Alternatively you can change the variable that pfSense uses to know where to look. I can't remember off hand what that is though. Hold on....

OK. First run:
Code: [Select]
setenv PACKAGESITE "ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-8.1-release/Latest/"

Then you can load packages as normal: pkg_add -r python

Steve
« Last Edit: January 08, 2012, 07:38:58 am by stephenw10 »

Offline afamnu

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: PFsense...
« Reply #5 on: January 08, 2012, 07:56:05 am »
still can't add the packages :s.. im tryng to fetch them manual ,,,and i downloaded the packages but also the rpm command not found :s how to install the rpm packages also ......

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9954
    • View Profile
Re: PFsense...
« Reply #6 on: January 08, 2012, 08:33:42 am »
Use the same pkg_add to install downloaded packages, just point to filesystem

pkg_add /path-to-package
« Last Edit: January 08, 2012, 09:15:57 am by marcelloc »

Offline afamnu

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: PFsense...
« Reply #7 on: January 08, 2012, 09:14:32 am »
thank you all i made same as u said and its work ,, im trying now to install the url grabber and the video cache , once i put the command python setup.py bdist_rpm  in the urlgrabber

# python setup.py bdist_rpm
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    import urlgrabber as _urlgrabber
  File "/root/urlgrabber-3.9.1/urlgrabber/__init__.py", line 54, in <module>
    from grabber import urlgrab, urlopen, urlread
ImportError: No module named grabber

Offline afamnu

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: PFsense...
« Reply #8 on: January 09, 2012, 08:17:29 am »
any help to install the urlgrabber ..??:(

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8097
    • View Profile
Re: PFsense...
« Reply #9 on: January 09, 2012, 08:27:21 am »
What are you trying to accomplish here?

Steve

Offline afamnu

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: PFsense...
« Reply #10 on: January 09, 2012, 02:04:43 pm »
python setup.py bdist_rpm     <====this command

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8097
    • View Profile
Re: PFsense...
« Reply #11 on: January 09, 2012, 03:11:32 pm »
Yes, but what does that python script do?

Where did you get it?

Steve

Offline afamnu

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: PFsense...
« Reply #12 on: January 09, 2012, 03:47:26 pm »
i do   cd urlgrabber-3.9.1
and then
python setup.py bdist_rpm

after that this error appearing

Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    import urlgrabber as _urlgrabber
  File "/root/urlgrabber-3.9.1/urlgrabber/__init__.py", line 54, in <module>
    from grabber import urlgrab, urlopen, urlread
ImportError: No module named grabber

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8097
    • View Profile
Re: PFsense...
« Reply #13 on: January 09, 2012, 04:30:40 pm »
Hmmm, well I can't comment on python script. Wrong python version perhaps?
Why are you trying to run URLGrabber on your firewall? It seems unwise.  ;)

Steve

Offline afamnu

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: PFsense...
« Reply #14 on: January 09, 2012, 11:24:16 pm »
Hmmm, well I can't comment on python script. Wrong python version perhaps?
Why are you trying to run URLGrabber on your firewall? It seems unwise.  ;)

Steve

but what i have to do ?????