I understand exactly what source packages do, if it makes it easier for you 
I'll call them tar.gz files.
Also, I don't find your comparison valid, as the result of package 
installation be it yum or ./configure && make && make install is the same: 
software being installed.

My meaning is that compiling from source will always be with us, and it's 
the prominent way of releasing new software.

Thanks,
Magic.

On Wednesday, January 2, 2013 11:32:55 AM UTC+2, magi...@gmail.com wrote:
>
> Hello Everyone,
>
> I'm looking for a way to install packages from source via puppet, I was 
> able to locate maybe 5 posts on this subject which is very strange, as I 
> would expect people to still use ./configure with their own customized 
> options.
> For example, I need to compile Curl with c-ares support, for that I need 
> to set an option for ./configure but can't find a way to do it.
>
> Here's the manifest, it works up to the point of "configure" which fails:
>
> file { "/usr/local/src": ensure => directory }
> file { "/usr/local/src/c-ares-1.9.1.tar.gz":
> source => "puppet:///modules/web_dev/c-ares-1.9.1.tar.gz",
> alias => "ares-source-tgz",
> before => Exec["untar-ares-source"]
> }
>
> exec { "tar xzf /usr/local/src/c-ares-1.9.1.tar.gz":
> cwd => "/usr/local/src",
> path => "/bin",
> creates => "/usr/local/src/c-ares-1.9.1",
> alias => "untar-ares-source",
> subscribe => File["ares-source-tgz"]
> }
>
> exec { "configure":
> command => "./configure",
> cwd => "/usr/local/src/c-ares-1.9.1",
> path => "/usr/local/src/c-ares-1.9.1",
> require => Exec[untar-ares-source],
> creates => "/usr/local/src/c-ares-1.9.1/config.h",
> }
>
> The ERROR:
>
> Debug: Exec[configure](provider=posix): Executing './configure'
> Debug: Executing './configure'
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: ./configure: 1: 
> ./configure: expr: not found
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: ./configure: 1: 
> ./configure: expr: not found
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: ./configure: 95: 
> ./configure: as_fn_error: not found
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: ./configure: line 
> 83: expr: command not found
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: ./configure: line 
> 90: expr: command not found
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: ./configure: line 
> 95: as_fn_error: command not found
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: ./configure: line 
> 465: sed: command not found
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: ./configure: line 
> 464: expr: command not found
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: ./configure: line 
> 465: sed: command not found
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: ./configure: line 
> 479: sed: command not found
> Notice: /Stage[main]/Web_dev/Exec[configure]/returns: : error: cannot 
> create .lineno; rerun with a POSIX shell
> Error: ./configure returned 1 instead of one of [0]
> Error: /Stage[main]/Web_dev/Exec[configure]/returns: change from notrun to 
> 0 failed: ./configure returned 1 instead of one of [0]
>
> Anyone did this or knows whats wrong ?
>
> Thanks,
> Magic.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/zLcAvPzXtPYJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to