can't compile on freebsd

66 views
Skip to first unread message

Gonzalo Rivero

unread,
Nov 10, 2017, 10:42:52 AM11/10/17
to mod-pagespeed-discuss
hello, i'm following this instructions https://www.modpagespeed.com/doc/build_mod_pagespeed_from_source
  mkdir -p ~/bin
  cd ~/bin
  git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

You will need to add the depot_tools to your path. In bash you would run:

  export PATH=$PATH:~/bin/depot_tools

Check out mod_pagespeed and dependencies 🔗

For building version 1.12 and later:

  git clone -b latest-stable --recursive https://github.com/pagespeed/mod_pagespeed.git
  cd mod_pagespeed
  python build/gyp_chromium --depth=.


but this last command fails with:

[root@www-desa ~/mod_pagespeed]# python build/gyp_chromium --depth=.
Traceback (most recent call last):
File "build/gyp_chromium", line 30, in <module>
import gyp
ImportError: No module named gyp

Otto van der Schaaf

unread,
Nov 10, 2017, 11:08:50 AM11/10/17
to mod-pagesp...@googlegroups.com, mmo...@freebsd.org
+mmhoki was able to get mod_pagespeed up and running on FreeBSD and contributed a port you may be interested in: https://svnweb.freebsd.org/changeset/ports/452011

Otto

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/796aa11f-eb88-4c9b-b682-a8baeb350e37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gonzalo Rivero

unread,
Nov 13, 2017, 8:08:07 AM11/13/17
to mod-pagespeed-discuss
thanks, but i'm very noob with this, ¿how do I download that patchset?


El viernes, 10 de noviembre de 2017, 13:08:50 (UTC-3), Otto van der Schaaf escribió:
+mmhoki was able to get mod_pagespeed up and running on FreeBSD and contributed a port you may be interested in: https://svnweb.freebsd.org/changeset/ports/452011

Otto

On Fri, 10 Nov 2017 at 16:42, Gonzalo Rivero <fishfr...@gmail.com> wrote:
hello, i'm following this instructions https://www.modpagespeed.com/doc/build_mod_pagespeed_from_source
  mkdir -p ~/bin
  cd ~/bin
  git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

You will need to add the depot_tools to your path. In bash you would run:

  export PATH=$PATH:~/bin/depot_tools

Check out mod_pagespeed and dependencies 🔗

For building version 1.12 and later:

  git clone -b latest-stable --recursive https://github.com/pagespeed/mod_pagespeed.git
  cd mod_pagespeed
  python build/gyp_chromium --depth=.


but this last command fails with:

[root@www-desa ~/mod_pagespeed]# python build/gyp_chromium --depth=.
Traceback (most recent call last):
File "build/gyp_chromium", line 30, in <module>
import gyp
ImportError: No module named gyp

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Eric Longuemare

unread,
Apr 5, 2018, 10:36:24 AM4/5/18
to mod-pagespeed-discuss
Hello,

I have the same error message when trying to build on Ubuntu 16.04 Desktop :

```
python build/gyp_chromium --depth=.
Traceback (most recent call last):
File "build/gyp_chromium", line 30, in <module>
import gyp
ImportError: No module named gyp
```

```
```
echo $PATH :/home/myuser/bin/depot_tools
```

I'm trying to fix it.

Thanks,

Eric


Eric Longuemare

unread,
Apr 5, 2018, 10:55:13 AM4/5/18
to mod-pagespeed-discuss

adding :

1 +print sys.path
sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib'))
2 +print sys.path

to build/gyp_chromium, I get this :

1 - ['/home/myuser/TESTMODPAGESPEED/mod_pagespeed/build', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2']

2 - ['/home/myuser/TESTMODPAGESPEED/mod_pagespeed/tools/gyp/pylib', '/home/myuser/TESTMODPAGESPEED/mod_pagespeed/build', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2']



Eric Longuemare

unread,
Apr 5, 2018, 11:47:39 AM4/5/18
to mod-pagespeed-discuss
OK, that's my bug : missed --recursive when cloned.
Reply all
Reply to author
Forward
0 new messages