[MAC] Snow Leopard Compile Errors
#1
Hi Everyone,

I'm trying to compile and install MacPorts 1.7.1 but I'm getting the following error:

can't find package Pextlib 1.0
while executing
"package require Pextlib 1.0"
(file "/opt/local/share/macports/Tcl/registry1.0/receipt_flat.tcl" line 37)
invoked from within
"source /opt/local/share/macports/Tcl/registry1.0/receipt_flat.tcl"
("package ifneeded receipt_flat 1.0" script)
invoked from within
"package require receipt_flat 1.0"
(file "/opt/local/share/macports/Tcl/registry1.0/registry.tcl" line 35)
invoked from within
"source /opt/local/share/macports/Tcl/registry1.0/registry.tcl"
("package ifneeded registry 1.0" script)
invoked from within
"package require registry 1.0"
(file "src/dep_map_clean.tcl" line 10)
make: *** [install] Error 1

Any ideas on how to fix this one?
Reply
#2
gresh Wrote:Hi Everyone,

I'm trying to compile and install MacPorts 1.7.1 but I'm getting the following error:

can't find package Pextlib 1.0
while executing
"package require Pextlib 1.0"
(file "/opt/local/share/macports/Tcl/registry1.0/receipt_flat.tcl" line 37)
invoked from within
"source /opt/local/share/macports/Tcl/registry1.0/receipt_flat.tcl"
("package ifneeded receipt_flat 1.0" script)
invoked from within
"package require receipt_flat 1.0"
(file "/opt/local/share/macports/Tcl/registry1.0/registry.tcl" line 35)
invoked from within
"source /opt/local/share/macports/Tcl/registry1.0/registry.tcl"
("package ifneeded registry 1.0" script)
invoked from within
"package require registry 1.0"
(file "src/dep_map_clean.tcl" line 10)
make: *** [install] Error 1

Any ideas on how to fix this one?

Are you following this guide? http://code.google.com/p/xbmc-port-depends/

If not then it's futile.
Reply
#3
Yeah this error happens for me at step 3 with 'sudo make install'
Reply
#4
gresh Wrote:Yeah this error happens for me at step 3 with 'sudo make install'

is cc, gcc, c++, g++ pointed to 4.0 version or 4.2 version ?

EDIT: Macports itself needs to be built using the xxx-4.2 version or it will fail when doing "make install", can't remember the error but that looks very familiar.
Reply
#5
I assume this is what you mean:

Snow-White:Code matt$ cc
i686-apple-darwin10-gcc-4.0.1: no input files
Snow-White:Code matt$ gcc
i686-apple-darwin10-gcc-4.0.1: no input files
Snow-White:Code matt$ c++
i686-apple-darwin10-g++-4.0.1: no input files
Snow-White:Code matt$ g++
i686-apple-darwin10-g++-4.0.1: no input files
Reply
#6
Thanks, had a .profile issue too, but it's all working now.
Reply
#7
I am having the same issue "can't find package Pextlib 1.0 while executing"

Can't seem to find a resolution on the forum. I am new to development so I may be missing something. I am running 10.6.4 and I am following the XBMC README.osx file downloaded through the svn source code which I found on
http://wiki.xbmc.org/?title=HOW-TO_compi...ource_code

Any help is greatly appreciated. I have removed and install macports 1.7 three times thinking I missed a step and keep coming across this error.

Thanks

Thanks
Reply
#8
Beekr25 Wrote:I am having the same issue "can't find package Pextlib 1.0 while executing"

Can't seem to find a resolution on the forum. I am new to development so I may be missing something. I am running 10.6.4 and I am following the XBMC README.osx file downloaded through the svn source code which I found on
http://wiki.xbmc.org/?title=HOW-TO_compi...ource_code

Any help is greatly appreciated. I have removed and install macports 1.7 three times thinking I missed a step and keep coming across this error.

Thanks

Thanks

follow these, I think that wiki entry is outdated.

http://code.google.com/p/xbmc-port-depends/
http://trac.xbmc.org/browser/trunk/README.osx
Reply
#9
davilla Wrote:follow these, I think that wiki entry is outdated.

http://code.google.com/p/xbmc-port-depends/
http://trac.xbmc.org/browser/trunk/README.osx

Thanks for the updated info. I am still receiving the following error.

can't find package Pextlib 1.0 while executing
"package require Pextlib 1.0" (file "/opt/local/bin/port" line 40)

Any ideas?

Thanks
Reply
#10
Beekr25 Wrote:Thanks for the updated info. I am still receiving the following error.

can't find package Pextlib 1.0 while executing
"package require Pextlib 1.0" (file "/opt/local/bin/port" line 40)

Any ideas?

Thanks

Which port are you installing, I would need more information to help

sudo port -v install <port name> will give lot's of debug info.
Reply
#11
davilla Wrote:Which port are you installing, I would need more information to help

sudo port -v install <port name> will give lot's of debug info.

I am attempting to install MacPort 1.7.1 through the instructions given to me. As soon as I get to here.

Then install the following port packages (order is very important):
93
94 $ sudo port install pcre +universal
95 $ sudo port install expat +universal
96 $ sudo port install libiconv +universal
97 $ sudo port install gettext +universal
98 $ sudo port install libtool yasm cmake gmake pkgconfig
99
100 $ sudo port install lzo +universal
101 $ sudo port install lzo2 +universal
102 $ sudo port install bzip2 +universal
103 $ sudo port install fontconfig +universal
104 $ sudo port install boost +universal
105
106 $ sudo port install jpeg +universal
107 $ sudo port install tiff +universal
108 $ sudo port install libpng +universal
109 $ sudo port install libogg +universal
110 $ sudo port install libvorbis +universal
111 $ sudo port install libmad macosx_deployment_target=10.4
112 $ sudo port install fribidi +universal
113 $ sudo port install libmms +universal
114 $ sudo port install wavpack +universal
115 $ sudo port install libmpeg2 +no_sdl +no_x11 +universal
116
117 $ sudo port install glew +universal
118 $ sudo port install libcdio +universal
119 $ sudo port install openssl +universal
120 $ sudo port install samba3 macosx_deployment_target=10.4
121 $ sudo port install mysql5 +universal
122 $ sudo port install sqlite3 +universal
123 $ sudo port install libsamplerate +universal
124
125 $ sudo port install libsdl +no_x11 +universal
126 $ sudo port install smpeg +universal
127 $ sudo port install libsdl_mixer +universal
128 $ sudo port install libsdl_image +universal

After attempting the first package I get the Prexlib 1.0 error. I even tried typing in port and the same error came up.

I'm sure it's something I'm missing as I mentioned earlier I am new to development.

I tried "sudo port -v install" but wasn't sure what port name to put in. I tried "port" and the same error came up.

Thanks
Reply
#12
sudo port -v install pcre +universal
Reply
#13
davilla Wrote:sudo port -v install pcre +universal

Thanks Again. I did a clean install one more time and got it to work up until the third last port package which gave me the following error.

Error: The following dependencies failed to build: libtool
Error: Status 1 encountered during processing.

Is libtool important? Seems odd that everything else worked except this one package.

Thanks
Ben
Reply
#14
Beekr25 Wrote:Thanks Again. I did a clean install one more time and got it to work up until the third last port package which gave me the following error.

Error: The following dependencies failed to build: libtool
Error: Status 1 encountered during processing.

Is libtool important? Seems odd that everything else worked except this one package.

Thanks
Ben

yes, libtool is important. try install it by itself. you don't need +universal on it as it's a compile tool.

sudo port -v install libtool
Reply
#15
davilla Wrote:yes, libtool is important. try install it by itself. you don't need +universal on it as it's a compile tool.

sudo port -v install libtool

Thanks That worked like a charm!!!

Of course I have hit another snag LOL!! Learning a lot about terminal based compiling though!! Really appreciate the help!!

I am receiving the following error when I try to "make clean".

make: *** No rule to make target `clean'. Stop.

I am on step 4 of the README.OSX file. which I have attached below.

4. How to compile
142 -----------------------------------------------------------------------------
143 Both Xcode and Terminal compilation require that build environment be setup
144 first. This is a simple step and involves the following:
145
146 $ cd $HOME/XBMC
147 $ ./bootstrap
148 $ ./configure
149 $ make clean
150 $ make xcode_depends
151
152 The configure operation will setup the build environment for codecs and
153 internal libraries that are used by XBMC. This step is required for both Xcode
154 and command-line building. The "make clean" ensures that there areno stale
155 binaries from svn that might cause problems The last step will pre-build
156 the majority of the codecs and libs:
157
158
159 The configure operation will default to building "debug". To build "release"
160 codecs and libraries for Xcode, do the configure step with "--disable-debug"
161 but remember that Xcode will need to be also built "Release":
162
163 $ ./configure --disable-debug
164
Reply

Logout Mark Read Team Forum Stats Members Help
[MAC] Snow Leopard Compile Errors0