librelist archives

« back to archive

Introduction & a small patch

Introduction & a small patch

From:
Niklaus Giger
Date:
2011-12-13 @ 20:11
Hi

I just stumbled over shoes and I think it might be exactly what I need to get 
my work done. I was  impressed about its simplicity and I know by experience 
that it takes a lot of work to achieve this.

I have however the following problem running rake on my x86-64 Debian wheezy 
system
> linking shared-object sqlite3/sqlite3_native.so
> rake aborted!
> No such file or directory - /usr/lib/libcurl.so

The followin patch fixes this problem:

diff --git a/make/linux/tasks.rb b/make/linux/tasks.rb
index 2a99e28..065d752 100644
--- a/make/linux/tasks.rb
+++ b/make/linux/tasks.rb
@@ -33,7 +33,7 @@ class MakeLinux
       ln_s  "libgif.so.4", "dist/libungif.so.4"
       # cp    "/usr/lib/libjpeg.so", "dist/libjpeg.so.8"
       find_and_copy "libjpeg.so", "dist/libjpeg.so.8"
-      cp    "/usr/lib/libcurl.so", "dist/libcurl.so.4"
+      find_and_copy "libcurl.so", "dist/libcurl.so.4"
       cp    "/usr/lib/libportaudio.so", "dist/libportaudio.so.2"
       cp    "/usr/lib/libsqlite3.so", "dist/libsqlite3.so.0"
       # cp    "/usr/lib/libsqlite3.so", "dist/libsqlite3.so.0"

Thanks for your great work!


Best regards

Niklaus 
-- 
Niklaus Giger
Wieshoschet 6
CH-8753 Mollis

Re: [shoes] Introduction & a small patch

From:
Steve Klabnik
Date:
2011-12-13 @ 20:22
Hey Niklaus!

Thanks so much for the patch! I have a deadline in few hours, or I'd
have already applied it. Welcome and thanks a ton!

-Steve

Re: [shoes] Introduction & a small patch

From:
Cecil Coupe
Date:
2011-12-13 @ 20:43
You can also delete the libcurl.so line and it links just fine.
I'm not sure curl is used anymore.

On Tue, 2011-12-13 at 21:11 +0100, Niklaus Giger wrote:
> Hi
> 
> I just stumbled over shoes and I think it might be exactly what I need to get 
> my work done. I was  impressed about its simplicity and I know by experience 
> that it takes a lot of work to achieve this.
> 
> I have however the following problem running rake on my x86-64 Debian wheezy 
> system
> > linking shared-object sqlite3/sqlite3_native.so
> > rake aborted!
> > No such file or directory - /usr/lib/libcurl.so
> 
> The followin patch fixes this problem:
> 
> diff --git a/make/linux/tasks.rb b/make/linux/tasks.rb
> index 2a99e28..065d752 100644
> --- a/make/linux/tasks.rb
> +++ b/make/linux/tasks.rb
> @@ -33,7 +33,7 @@ class MakeLinux
>        ln_s  "libgif.so.4", "dist/libungif.so.4"
>        # cp    "/usr/lib/libjpeg.so", "dist/libjpeg.so.8"
>        find_and_copy "libjpeg.so", "dist/libjpeg.so.8"
> -      cp    "/usr/lib/libcurl.so", "dist/libcurl.so.4"
> +      find_and_copy "libcurl.so", "dist/libcurl.so.4"
>        cp    "/usr/lib/libportaudio.so", "dist/libportaudio.so.2"
>        cp    "/usr/lib/libsqlite3.so", "dist/libsqlite3.so.0"
>        # cp    "/usr/lib/libsqlite3.so", "dist/libsqlite3.so.0"
> 
> Thanks for your great work!
> 
> 
> Best regards
> 
> Niklaus 

Re: [shoes] Introduction & a small patch

From:
Steve Klabnik
Date:
2011-12-13 @ 20:59
> You can also delete the libcurl.so line and it links just fine.
> I'm not sure curl is used anymore.

Shoes.download would use it, right?

I'd like to move away from these native download libraries and to
Net::HTTP. I _think_ why was using them because they could download in
the background and not block the event loop, but we can just do that
with Threads...

Re: [shoes] Introduction & a small patch

From:
Cecil Coupe
Date:
2011-12-13 @ 21:28
You and I would think so, particularly after looking at the code. 
But it linked and started up w/o error so who knows what happening? 
To be safe use the find_and_copy patch submitted earlier.

On Tue, 2011-12-13 at 15:59 -0500, Steve Klabnik wrote:
> > You can also delete the libcurl.so line and it links just fine.
> > I'm not sure curl is used anymore.
> 
> Shoes.download would use it, right?
> 
> I'd like to move away from these native download libraries and to
> Net::HTTP. I _think_ why was using them because they could download in
> the background and not block the event loop, but we can just do that
> with Threads...