sqlite3 build failure

Shawn Protsman protsman at mac.com
Wed Mar 19 10:32:06 PDT 2008


On Mar 18, 2008, at 6:30 PM, Ryan Schmidt wrote:

> On Mar 18, 2008, at 14:35, Shawn Protsman wrote:
>
>> Just moved to Leopard (10.5.2) and now I'm getting my port installed
>> when I ran into this problem. Any ideas on what can be done?
>>
>> $ sudo port install subversion apr-util sqlite3 neon openssl
>> Password:
>> --->  Building sqlite3 with target all
>> Error: Target org.macports.build returned: shell command " cd "/opt/
>> local/var/macports/build/
>> _opt_local_var_macports_sources_rsync
>> .macports.org_release_ports_databases_sqlite3/work/sqlite-3.5.7" &&
>> gnumake all " returned error 2
>> Command output: sort -n -b -k 3 opcodes.h |  -f ./mkopcodec.awk
>>> opcodes.c
>> /bin/sh: -f: command not found
>
> I just upgraded to sqlite3 3.5.7 on Tiger (10.4.11) and the relevant  
> line of output should be:
>
> sort -n -b -k 3 opcodes.h | /opt/local/bin/gawk -f ./mkopcodec.awk  
> >opcodes.c
>
> So on your system it can't find awk/gawk. This is a common problem  
> on Leopard to which I don't know the solution. Some say simply  
> retrying the install will work. (Just do "sudo port install sqlite3"  
> again.) That's a workaround of course, not a permanent solution...

Well … oddly enough, that worked:

   $ sudo port clean sqlite3
   --->  Cleaning sqlite3
   $ sudo port install sqlite3
   --->  Fetching sqlite3
   --->  Verifying checksum(s) for sqlite3
   --->  Extracting sqlite3
   --->  Configuring sqlite3
   --->  Building sqlite3 with target all
   --->  Staging sqlite3 into destroot
   --->  Installing sqlite3 3.5.7_0
   --->  Activating sqlite3 3.5.7_0
   --->  Cleaning sqlite3


--Shawn


More information about the macports-users mailing list