Trouble installing Source-Highlight

View: New views
14 Messages — Rating Filter:   Alert me  

Trouble installing Source-Highlight

by Binil Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I encountered the following error while trying to install source-highlight package using port. Googling turned up the link
http://www.nabble.com/Problem-compiling-source-highlight-on-Mac-OS-10.4.2-t341744.html
but I am unsure how to use that particular recommendation alongside port. Kindly help me.

Thanks,
Binil

binil-thomas-ibook-g4:~ binil$ port installed    
The following ports are currently installed:
  boost @1.34.0_0 (active)
  boost-jam @3.1.13_0 (active)
  expat @2.0.1_0
  links @2.1pre26_0 (active)
  tree @1.5.0_0 (active)

binil-thomas-ibook-g4:~ binil
binil-thomas-ibook-g4:~ binil$ port info source-highlight
source-highlight 2.7, textproc/source-highlight (Variants: universal)
http://www.gnu.org/software/src-highlite/

This program, given a source file, produces a document with syntax highlighting. At the moment it can handle: C/C++, C#, Bib, Bison, Caml, Changelog, CSS, Diff, Flex, Fortran, Html, Java, Javascript, Latex, Logtalk, Log files, Lua, Makefile, M4, ML, Pascal, Perl, PHP, Postscript, Prolog, Python, Ruby, Shell, Sql, Tcl, and XML.

Library Dependencies: boost
Platforms: darwin
Maintainers: pipping@macports.org
binil-thomas-ibook-g4:~ binil$

binil-thomas-ibook-g4:~ binil$ sudo port -d -v install source-highlight
DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/textproc/source-highlight
DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/textproc/source-highlight
DEBUG: Requested variant powerpc is not provided by port source-highlight.
DEBUG: Requested variant darwin is not provided by port source-highlight.
DEBUG: Requested variant macosx is not provided by port source-highlight.
DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/boost
DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/boost
DEBUG: Requested variant powerpc is not provided by port boost.
DEBUG: Requested variant macosx is not provided by port boost.
DEBUG: Executing variant darwin provides darwin
DEBUG: Searching for dependency: boost
DEBUG: Found Dependency: receipt exists for boost
DEBUG: Skipping completed com.apple.main (source-highlight)
DEBUG: Skipping completed com.apple.fetch (source-highlight)
DEBUG: Skipping completed com.apple.checksum (source-highlight)
DEBUG: Skipping completed com.apple.extract (source-highlight)
DEBUG: Skipping completed com.apple.patch (source-highlight)
--->  Configuring source-highlight
DEBUG: Executing com.apple.configure (source-highlight)
DEBUG: Environment: CXXFLAGS='-O2' CPPFLAGS='-I/opt/local/include' CFLAGS='-O2' LDFLAGS='-L/opt/local/lib'
DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_textproc_source-highlight/work/source-highlight-2.7" && ./configure --prefix=/opt/local --infodir=/opt/local/share/info --mandir=/opt/local/share/man'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for strftime... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gawk... (cached) awk
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... powerpc-apple-darwin8.10.0
checking host system type... powerpc-apple-darwin8.10.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... no
configure: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: dlfcn.h: proceeding with the compiler's result
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.10.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.10.0 dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking whether the compiler implements namespaces... yes
checking whether the compiler supports Standard Template Library... yes
checking whether the compiler has stringstream... yes
checking whether the compiler has ios_base... yes
checking whether the Boost::Regex library is available... no
checking boost/shared_ptr.hpp usability... no
checking boost/shared_ptr.hpp presence... no
checking for boost/shared_ptr.hpp... no
checking for the txtc compiler... yes
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for main in -lfl... yes
checking for main in -lefence... no
checking for yywrap... yes
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for getopt_long_only... yes
checking whether optreset is declared... yes
checking whether getenv is declared... yes
checking whether strdup is declared... yes
checking for memset... yes
checking for strdup... yes
checking for unistd.h... (cached) yes
checking for off_t... yes
checking for gengetopt... no
checking for doublecpp... no
checking for valgrind... no
checking for help2man... no
checking for ctags... /usr/bin/ctags
checking whether /usr/bin/ctags accept --excmd... no
checking checking if it's bison ... bison -y
checking for tar... /usr/bin/tar
checking for texi2html... /usr/bin/texi2html
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating txtc.sh
config.status: creating gl/Makefile
config.status: creating src/Makefile
config.status: creating src/java2html
config.status: creating src/cpp2html
config.status: creating src/src-hilite-lesspipe.sh
config.status: creating doc/Makefile
config.status: creating doc/shjs_css_transform.sh
config.status: creating doc/gen_style_example.sh
config.status: creating src/includes/Makefile
config.status: creating src/lib/Makefile
config.status: creating tests/Makefile
config.status: creating tests/valgrind_tests.sh
config.status: creating tests/valgrind_test.sh
config.status: creating tests/valgrind_suppressions.sh
config.status: creating source-highlight.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
configure: error:

ERROR! Boost::regex library not installed.
Please install it (download at http://www.boost.org/)
Error: Target com.apple.configure returned: configure failure: shell command " cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_textproc_source-highlight/work/source-highlight-2.7" && ./configure --prefix=/opt/local --infodir=/opt/local/share/info --mandir=/opt/local/share/man " returned error 1
Command output: checking checking if it's bison ... bison -y
checking for tar... /usr/bin/tar
checking for texi2html... /usr/bin/texi2html
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating txtc.sh
config.status: creating gl/Makefile
config.status: creating src/Makefile
config.status: creating src/java2html
config.status: creating src/cpp2html
config.status: creating src/src-hilite-lesspipe.sh
config.status: creating doc/Makefile
config.status: creating doc/shjs_css_transform.sh
config.status: creating doc/gen_style_example.sh
config.status: creating src/includes/Makefile
config.status: creating src/lib/Makefile
config.status: creating tests/Makefile
config.status: creating tests/valgrind_tests.sh
config.status: creating tests/valgrind_test.sh
config.status: creating tests/valgrind_suppressions.sh
config.status: creating source-highlight.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
configure: error:

ERROR! Boost::regex library not installed.
Please install it (download at http://www.boost.org/)

Warning: the following items did not execute (for source-highlight): com.apple.activate com.apple.configure com.apple.build com.apple.destroot com.apple.install
Error: Status 1 encountered during processing.
binil-thomas-ibook-g4:~ binil$

Parent Message unknown Re: Trouble installing Source-Highlight

by Elias Pipping-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Date: Wed, 4 Jul 2007 14:14:46 -0700 (PDT)
> From: Binil Thomas <binil.thomas.public@...>
> Subject: Trouble installing Source-Highlight
> To: macports-users@...
>
> I encountered the following error while trying to install
> source-highlight package using port.

< snip >

> checking whether the Boost::Regex library is available... no
> checking boost/shared_ptr.hpp usability... no
> checking boost/shared_ptr.hpp presence... no
> checking for boost/shared_ptr.hpp... no

< snip >

> configure: error:
>
> ERROR! Boost::regex library not installed.
> Please install it (download at http://www.boost.org/)

< snip >

Hi,

the problem is caused by boost 1.34. I've tried it with boost 1.33 a
second ago and it worked flawlessly. I've CC'ed Lorenzo Bettini, the
developer of source-highlight, maybe he knows a fix (I don't).


Kind regards,

Elias

PS: I think the link you provided was related to a different problem,
because it was encountered with v1.33.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Original Message:

http://www.mail-archive.com/macports-users@.../ 
msg03719.html
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Trouble installing Source-Highlight

by Emmanuel Hainry-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Citando Elias Pipping :

> >Date: Wed, 4 Jul 2007 14:14:46 -0700 (PDT)
> >From: Binil Thomas <binil.thomas.public@...>
> >Subject: Trouble installing Source-Highlight
> >To: macports-users@...
> >
> >I encountered the following error while trying to install
> >source-highlight package using port.
>
> < snip >
>
> >checking whether the Boost::Regex library is available... no
> >checking boost/shared_ptr.hpp usability... no
> >checking boost/shared_ptr.hpp presence... no
> >checking for boost/shared_ptr.hpp... no
>
> < snip >
>
> >configure: error:
> >
> >ERROR! Boost::regex library not installed.
> >Please install it (download at http://www.boost.org/)
>
> < snip >
>
> Hi,
>
> the problem is caused by boost 1.34. I've tried it with boost 1.33 a
> second ago and it worked flawlessly. I've CC'ed Lorenzo Bettini, the
> developer of source-highlight, maybe he knows a fix (I don't).
>
>

boost1.34 installs its headers in ${prefix}/boost-1_34/boost whereas
progs expect it in ${prefix}/boost (which is where boost 1.33 put them).

I stumbled upon that while installing globuation2:
http://trac.macports.org/projects/macports/ticket/12185

Adding -I${prefix}/boost-1_34 to cppflags should do the trick. (or boost
should be corrected).

Best,

Emmanuel
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Trouble installing Source-Highlight

by Ryan Schmidt-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jul 6, 2007, at 07:10, Emmanuel Hainry wrote:

> Citando Elias Pipping :
>
>> Binil Thomas:
>>
>>> I encountered the following error while trying to install
>>> source-highlight package using port.
>>
>> < snip >
>>
>>> checking whether the Boost::Regex library is available... no
>>> checking boost/shared_ptr.hpp usability... no
>>> checking boost/shared_ptr.hpp presence... no
>>> checking for boost/shared_ptr.hpp... no
>>
>> < snip >
>>
>>> configure: error:
>>>
>>> ERROR! Boost::regex library not installed.
>>> Please install it (download at http://www.boost.org/)
>>
>> the problem is caused by boost 1.34. I've tried it with boost 1.33 a
>> second ago and it worked flawlessly. I've CC'ed Lorenzo Bettini, the
>> developer of source-highlight, maybe he knows a fix (I don't).
>
> boost1.34 installs its headers in ${prefix}/boost-1_34/boost whereas
> progs expect it in ${prefix}/boost (which is where boost 1.33 put  
> them).
>
> I stumbled upon that while installing globuation2:
> http://trac.macports.org/projects/macports/ticket/12185
>
> Adding -I${prefix}/boost-1_34 to cppflags should do the trick. (or  
> boost
> should be corrected).

boost should be fixed as of 1.34_1. See:

http://trac.macosforge.org/projects/macports/ticket/12110

Please let us know if this does not resolve the problem.

_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Trouble installing Source-Highlight

by Elias Pipping-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Jul 7, 2007, at 12:20 AM, Ryan Schmidt wrote:

>
> On Jul 6, 2007, at 07:10, Emmanuel Hainry wrote:
>
>> Citando Elias Pipping :
>>
>>> Binil Thomas:
>>>
>>>> I encountered the following error while trying to install
>>>> source-highlight package using port.
>>>
>>> < snip >
>>>
>>>> checking whether the Boost::Regex library is available... no
>>>> checking boost/shared_ptr.hpp usability... no
>>>> checking boost/shared_ptr.hpp presence... no
>>>> checking for boost/shared_ptr.hpp... no
>>>
>>> < snip >
>>>
>>>> configure: error:
>>>>
>>>> ERROR! Boost::regex library not installed.
>>>> Please install it (download at http://www.boost.org/)
>>>
>>> the problem is caused by boost 1.34. I've tried it with boost 1.33 a
>>> second ago and it worked flawlessly. I've CC'ed Lorenzo Bettini, the
>>> developer of source-highlight, maybe he knows a fix (I don't).
>>
>> boost1.34 installs its headers in ${prefix}/boost-1_34/boost whereas
>> progs expect it in ${prefix}/boost (which is where boost 1.33 put  
>> them).
>>
>> I stumbled upon that while installing globuation2:
>> http://trac.macports.org/projects/macports/ticket/12185
>>
>> Adding -I${prefix}/boost-1_34 to cppflags should do the trick. (or  
>> boost
>> should be corrected).
>
> boost should be fixed as of 1.34_1. See:
>
> http://trac.macosforge.org/projects/macports/ticket/12110
>
> Please let us know if this does not resolve the problem.


Nope, doesn't work - tried that already:

< snip >
   Index: Portfile
   ===================================================================
   --- Portfile    (revision 26779)
   +++ Portfile    (working copy)
   @@ -23,6 +23,7 @@

    configure.args  --infodir=${prefix}/share/info \
                    --mandir=${prefix}/share/man
   +configure.cppflags -I${prefix}/include/boost

    test.run        yes
    test.target     check
< snip >


Kind regards,

Elias
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Parent Message unknown Re: Trouble installing Source-Highlight

by Elias Pipping-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jul 7, 2007, at 4:28 PM, Lorenzo Bettini wrote:

> Elias Pipping wrote:
>>> Date: Wed, 4 Jul 2007 14:14:46 -0700 (PDT)
>>> From: Binil Thomas <binil.thomas.public@...>
>>> Subject: Trouble installing Source-Highlight
>>> To: macports-users@...
>>>
>>> I encountered the following error while trying to install
>>> source-highlight package using port.
>> < snip >
>>> checking whether the Boost::Regex library is available... no
>>> checking boost/shared_ptr.hpp usability... no
>>> checking boost/shared_ptr.hpp presence... no
>>> checking for boost/shared_ptr.hpp... no
>> < snip >
>>> configure: error:
>>>
>>> ERROR! Boost::regex library not installed.
>>> Please install it (download at http://www.boost.org/)
>> < snip >
>> Hi,
>> the problem is caused by boost 1.34. I've tried it with boost 1.33 a
>> second ago and it worked flawlessly. I've CC'ed Lorenzo Bettini, the
>> developer of source-highlight, maybe he knows a fix (I don't).
>> Kind regards,
>> Elias
>> PS: I think the link you provided was related to a different problem,
>> because it was encountered with v1.33.
>

Hello!

> could you please check where the boost header files are installed?
> I haven't tried 1.34 yet

% dirs
~/MacPorts/include

% ls -d boost*
boost  boost-1_34

% file boost
boost: symbolic link to `boost-1_34/boost'

% ls boost-1_34/
boost

% ls boost-1_34/boost/
algorithm                      nondet_random.hpp
aligned_storage.hpp            none.hpp
any.hpp                        numeric
archive                        operators.hpp
array.hpp                      optional
assert.hpp                     optional.hpp
assign                         parameter
assign.hpp                     parameter.hpp
bind                           pending
bind.hpp                       pfto.hpp
blank.hpp                      pointee.hpp
blank_fwd.hpp                  pointer_cast.hpp
call_traits.hpp                pointer_to_other.hpp
cast.hpp                       pool
checked_delete.hpp             preprocessor
compatibility                  preprocessor.hpp
compressed_pair.hpp            program_options
concept_archetype.hpp          program_options.hpp
concept_check.hpp              progress.hpp
config                         property_map.hpp
config.hpp                     property_map_iterator.hpp
crc.hpp                        ptr_container
cregex.hpp                     python
cstdint.hpp                    python.hpp
cstdlib.hpp                    random
current_function.hpp           random.hpp
date_time                      range
date_time.hpp                  range.hpp
detail                         rational.hpp
dynamic_bitset                 ref.hpp
dynamic_bitset.hpp             regex
dynamic_bitset_fwd.hpp         regex.h
dynamic_property_map.hpp       regex.hpp
enable_shared_from_this.hpp    regex_fwd.hpp
filesystem                     scoped_array.hpp
filesystem.hpp                 scoped_ptr.hpp
foreach.hpp                    serialization
format                         shared_array.hpp
format.hpp                     shared_container_iterator.hpp
function                       shared_ptr.hpp
function.hpp                   signal.hpp
function_equal.hpp             signals
function_output_iterator.hpp   signals.hpp
functional                     smart_cast.hpp
functional.hpp                 smart_ptr.hpp
generator_iterator.hpp         spirit
get_pointer.hpp                spirit.hpp
graph                          state_saver.hpp
implicit_cast.hpp              statechart
indirect_reference.hpp         static_assert.hpp
integer                        static_warning.hpp
integer.hpp                    strong_typedef.hpp
integer_fwd.hpp                test
integer_traits.hpp             thread
intrusive_ptr.hpp              thread.hpp
io                             throw_exception.hpp
io_fwd.hpp                     timer.hpp
iostreams                      token_functions.hpp
iterator                       token_iterator.hpp
iterator.hpp                   tokenizer.hpp
iterator_adaptors.hpp          tr1
lambda                         tuple
last_value.hpp                 type.hpp
lexical_cast.hpp               type_traits
limits.hpp                     type_traits.hpp
logic                          typeof
math                           utility
math_fwd.hpp                   utility.hpp
mem_fn.hpp                     variant
mpl                            variant.hpp
multi_array                    vector_property_map.hpp
multi_array.hpp                version.hpp
multi_index                    visit_each.hpp
multi_index_container.hpp      wave
multi_index_container_fwd.hpp  wave.hpp
next_prior.hpp                 weak_ptr.hpp
non_type.hpp                   xpressive
noncopyable.hpp


Kind regards,

Elias
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Parent Message unknown Re: Trouble installing Source-Highlight

by Elias Pipping-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Jul 7, 2007, at 4:42 PM, Lorenzo Bettini wrote:

> Elias Pipping wrote:
>> On Jul 7, 2007, at 4:28 PM, Lorenzo Bettini wrote:
>>> Elias Pipping wrote:
>>>>> Date: Wed, 4 Jul 2007 14:14:46 -0700 (PDT)
>>>>> From: Binil Thomas <binil.thomas.public@...>
>>>>> Subject: Trouble installing Source-Highlight
>>>>> To: macports-users@...
>>>>>
>>>>> I encountered the following error while trying to install
>>>>> source-highlight package using port.
>>>> < snip >
>>>>> checking whether the Boost::Regex library is available... no
>>>>> checking boost/shared_ptr.hpp usability... no
>>>>> checking boost/shared_ptr.hpp presence... no
>>>>> checking for boost/shared_ptr.hpp... no
>>>> < snip >
>>>>> configure: error:
>>>>>
>>>>> ERROR! Boost::regex library not installed.
>>>>> Please install it (download at http://www.boost.org/)
>>>> < snip >
>>>> Hi,
>>>> the problem is caused by boost 1.34. I've tried it with boost  
>>>> 1.33 a
>>>> second ago and it worked flawlessly. I've CC'ed Lorenzo Bettini,  
>>>> the
>>>> developer of source-highlight, maybe he knows a fix (I don't).
>>>> Kind regards,
>>>> Elias
>>>> PS: I think the link you provided was related to a different  
>>>> problem,
>>>> because it was encountered with v1.33.
>>>
>> Hello!
>>> could you please check where the boost header files are installed?
>>> I haven't tried 1.34 yet
>> % dirs
>> ~/MacPorts/include
>> % ls -d boost*
>> boost  boost-1_34
>> % file boost
>> boost: symbolic link to `boost-1_34/boost'
>> % ls boost-1_34/
>> boost
>> % ls boost-1_34/boost/
>> algorithm                      nondet_random.hpp
>> aligned_storage.hpp            none.hpp
>> any.hpp                        numeric
>> archive                        operators.hpp
>> array.hpp                      optional
>> assert.hpp                     optional.hpp
>> assign                         parameter
>> assign.hpp                     parameter.hpp
>> bind                           pending
>> bind.hpp                       pfto.hpp
>> blank.hpp                      pointee.hpp
>> blank_fwd.hpp                  pointer_cast.hpp
>> call_traits.hpp                pointer_to_other.hpp
>> cast.hpp                       pool
>> checked_delete.hpp             preprocessor
>> compatibility                  preprocessor.hpp
>> compressed_pair.hpp            program_options
>> concept_archetype.hpp          program_options.hpp
>> concept_check.hpp              progress.hpp
>> config                         property_map.hpp
>> config.hpp                     property_map_iterator.hpp
>> crc.hpp                        ptr_container
>> cregex.hpp                     python
>> cstdint.hpp                    python.hpp
>> cstdlib.hpp                    random
>> current_function.hpp           random.hpp
>> date_time                      range
>> date_time.hpp                  range.hpp
>> detail                         rational.hpp
>> dynamic_bitset                 ref.hpp
>> dynamic_bitset.hpp             regex
>> dynamic_bitset_fwd.hpp         regex.h
>> dynamic_property_map.hpp       regex.hpp
>> enable_shared_from_this.hpp    regex_fwd.hpp
>> filesystem                     scoped_array.hpp
>> filesystem.hpp                 scoped_ptr.hpp
>> foreach.hpp                    serialization
>> format                         shared_array.hpp
>> format.hpp                     shared_container_iterator.hpp
>> function                       shared_ptr.hpp
>> function.hpp                   signal.hpp
>> function_equal.hpp             signals
>> function_output_iterator.hpp   signals.hpp
>> functional                     smart_cast.hpp
>> functional.hpp                 smart_ptr.hpp
>> generator_iterator.hpp         spirit
>> get_pointer.hpp                spirit.hpp
>> graph                          state_saver.hpp
>> implicit_cast.hpp              statechart
>> indirect_reference.hpp         static_assert.hpp
>> integer                        static_warning.hpp
>> integer.hpp                    strong_typedef.hpp
>> integer_fwd.hpp                test
>> integer_traits.hpp             thread
>> intrusive_ptr.hpp              thread.hpp
>> io                             throw_exception.hpp
>> io_fwd.hpp                     timer.hpp
>> iostreams                      token_functions.hpp
>> iterator                       token_iterator.hpp
>> iterator.hpp                   tokenizer.hpp
>> iterator_adaptors.hpp          tr1
>> lambda                         tuple
>> last_value.hpp                 type.hpp
>> lexical_cast.hpp               type_traits
>> limits.hpp                     type_traits.hpp
>> logic                          typeof
>> math                           utility
>> math_fwd.hpp                   utility.hpp
>> mem_fn.hpp                     variant
>> mpl                            variant.hpp
>> multi_array                    vector_property_map.hpp
>> multi_array.hpp                version.hpp
>> multi_index                    visit_each.hpp
>> multi_index_container.hpp      wave
>> multi_index_container_fwd.hpp  wave.hpp
>> next_prior.hpp                 weak_ptr.hpp
>> non_type.hpp                   xpressive
>> noncopyable.hpp
>
> but this message
>
> checking whether the Boost::Regex library is available... no
>
> says that the compiler can't find the header files, so probably ~/
> MacPorts/include should be added to the include path, e.g., with  
> the compiler option -I
>
> I guess...

Urks. This is silly. Configure.cppflags overwrote the default -I$
{prefix}/include with -I${prefix}/include/boost instead of appending  
it. Removing that line solved the problem.

Kind regards,

Elias
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Trouble installing Source-Highlight

by Sancho McCann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So, a patch was just applied yesterday to the boost port that  
reinstates a missing symbolic link. Did you upgrade since then?

Sancho


On 7-Jul-07, at 3:52 AM, Elias Pipping wrote:

> On Jul 7, 2007, at 12:20 AM, Ryan Schmidt wrote:
>
>>
>> On Jul 6, 2007, at 07:10, Emmanuel Hainry wrote:
>>
>>> Citando Elias Pipping :
>>>
>>>> Binil Thomas:
>>>>
>>>>> I encountered the following error while trying to install
>>>>> source-highlight package using port.
>>>>
>>>> < snip >
>>>>
>>>>> checking whether the Boost::Regex library is available... no
>>>>> checking boost/shared_ptr.hpp usability... no
>>>>> checking boost/shared_ptr.hpp presence... no
>>>>> checking for boost/shared_ptr.hpp... no
>>>>
>>>> < snip >
>>>>
>>>>> configure: error:
>>>>>
>>>>> ERROR! Boost::regex library not installed.
>>>>> Please install it (download at http://www.boost.org/)
>>>>
>>>> the problem is caused by boost 1.34. I've tried it with boost  
>>>> 1.33 a
>>>> second ago and it worked flawlessly. I've CC'ed Lorenzo Bettini,  
>>>> the
>>>> developer of source-highlight, maybe he knows a fix (I don't).
>>>
>>> boost1.34 installs its headers in ${prefix}/boost-1_34/boost whereas
>>> progs expect it in ${prefix}/boost (which is where boost 1.33 put  
>>> them).
>>>
>>> I stumbled upon that while installing globuation2:
>>> http://trac.macports.org/projects/macports/ticket/12185
>>>
>>> Adding -I${prefix}/boost-1_34 to cppflags should do the trick.  
>>> (or boost
>>> should be corrected).
>>
>> boost should be fixed as of 1.34_1. See:
>>
>> http://trac.macosforge.org/projects/macports/ticket/12110
>>
>> Please let us know if this does not resolve the problem.
>
>
> Nope, doesn't work - tried that already:
>
> < snip >
>   Index: Portfile
>   ===================================================================
>   --- Portfile    (revision 26779)
>   +++ Portfile    (working copy)
>   @@ -23,6 +23,7 @@
>
>    configure.args  --infodir=${prefix}/share/info \
>                    --mandir=${prefix}/share/man
>   +configure.cppflags -I${prefix}/include/boost
>
>    test.run        yes
>    test.target     check
> < snip >
>
>
> Kind regards,
>
> Elias

_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Trouble installing Source-Highlight

by Binil Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Apologies for my ignorance, but can someone please explain how a user who knows little beyond 'sudo port install source-highlight' use this information. :-)

Thanks,
Binil

Elias Pipping-3 wrote:
Urks. This is silly. Configure.cppflags overwrote the default -I$
{prefix}/include with -I${prefix}/include/boost instead of appending  
it. Removing that line solved the problem.

Re: Trouble installing Source-Highlight

by Paul Beard-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On 7/8/07, Binil Thomas <binil.thomas.public@...> wrote:

Apologies for my ignorance, but can someone please explain how a user who
knows little beyond 'sudo port install source-highlight' use this
information. :-)

Thanks,
Binil

If you're referring to the message from Elias, it's just part of preserving the record of how problems are solved. So for most of us,  'sudo port install source-highlight'  is sufficient. But it helps to capture the other information. 
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Trouble installing Source-Highlight

by Binil Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paul,

I meant no harm. Sincere apologies if my post upset you.

I am still getting the error when I run 'sudo port install source-highlight'. Could it be that I need to do some form of 'clean' before? Or is it that I need to wait for a 'release' of some form to happen?

I am very new to MacPorts. The closest system I have used, from my limited understanding of MacPorts, is Maven. As a dutiful user, I reported the problem as best as I could to the list. Knowledgeable people identified the issue and seems to have fixed it. But I still am stuck with it - and hence I was asking for help.

Thanks,
Binil


Paul Beard-2 wrote:
On 7/8/07, Binil Thomas <binil.thomas.public@gmail.com> wrote:
>
>
> Apologies for my ignorance, but can someone please explain how a user who
> knows little beyond 'sudo port install source-highlight' use this
> information. :-)
>
> Thanks,
> Binil
>

If you're referring to the message from Elias, it's just part of preserving
the record of how problems are solved. So for most of us,  'sudo port
install source-highlight'  is sufficient. But it helps to capture the other
information.
--
Paul Beard / www.paulbeard.org/
<paulbeard@gmail.com/paulbeard@mac.com>

_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Trouble installing Source-Highlight

by Paul Beard-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On 7/8/07, Binil Thomas <binil.thomas.public@...> wrote:

Paul,

I meant no harm. Sincere apologies if my post upset you.

I am still getting the error when I run 'sudo port install
source-highlight'. Could it be that I need to do some form of 'clean'
before? Or is it that I need to wait for a 'release' of some form to happen?

I am very new to MacPorts. The closest system I have used, from my limited
understanding of MacPorts, is Maven. As a dutiful user, I reported the
problem as best as I could to the list. Knowledgeable people identified the
issue and seems to have fixed it. But I still am stuck with it - and hence I
was asking for help.

Thanks,
Binil

The fault is all mine. I didn't realize you were still having trouble. 

I'll be a guinea pig and see if I can get it built and get it installed. 

 

--
Paul Beard / www.paulbeard.org/
<paulbeard@.../paulbeard@...>

_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Trouble installing Source-Highlight

by Paul Beard-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On 7/8/07, Binil Thomas <binil.thomas.public@...> wrote:

Apologies for my ignorance, but can someone please explain how a user who
knows little beyond 'sudo port install source-highlight' use this
information. :-)

Thanks,
Binil


Elias Pipping-3 wrote:
>
> Urks. This is silly. Configure.cppflags overwrote the default -I$
> {prefix}/include with -I${prefix}/include/boost instead of appending
> it. Removing that line solved the problem.
>


OK, I just installed this and it worked just fine (though I have no use for it ;-) ) 

I suggest the following:

port clean boost
port clean boost-jam
port clean source-highlight
port sync
port -v build source-highlight

and if it still fails, send along the output that the -v flag will generate. 

--
Paul Beard / www.paulbeard.org/
<paulbeard@.../paulbeard@...>

_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Trouble installing Source-Highlight

by Binil Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks! I got it working!

The exact sequence suggested did not work. But I uninstalled (sudo port uninstall) boost-jam and boost, and installed source-highlight (sudo port install source-highlight) and it all worked!

Thanks again!

Cheers,
Bini

Paul Beard-2 wrote:
OK, I just installed this and it worked just fine (though I have no use for
it ;-) )

I suggest the following:

port clean boost
port clean boost-jam
port clean source-highlight
port sync
port -v build source-highlight

and if it still fails, send along the output that the -v flag will
generate.