INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Why use a deb package install rather than a Bash script ?  (Read 2460 times)

fsimerey

  • Member
  • *
  • Posts: 3
Why use a deb package install rather than a Bash script ?
« on: November 15, 2013, 08:37:53 pm »

The question is in title.

A bash script could be more universal to all distributions or am i wrong ?
I say that because i use SideFX Houdini, and installation is a bash script that is compatible with all distros i tested (Debian, Fedora, Arch Linux, etc...).
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13871
Re: Why use a deb package install rather than a Bash script ?
« Reply #1 on: November 19, 2013, 12:54:59 pm »

MC requires a fair number of system libraries that must be present for it to work.
The system that it's built on determines what versions of those libraries are required.
It's built on debian that's why it's a .deb.

A more generic build might work as tar.gz however there are still going to be 32/64 bit and
dependency issues.

Java apps (for example) work around that by being the same "binary" and leaving the installed java interpreter to handle the machine specific stuff.


Logged

fsimerey

  • Member
  • *
  • Posts: 3
Re: Why use a deb package install rather than a Bash script ?
« Reply #2 on: November 22, 2013, 09:14:01 am »

Thanks for reply Bob. Could another way be to get all dependencies in MC folder and sourcing an environment variable. But i suppose the result archive would be a very big one ?
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: Why use a deb package install rather than a Bash script ?
« Reply #3 on: November 22, 2013, 11:18:39 am »

Thanks for reply Bob. Could another way be to get all dependencies in MC folder and sourcing an environment variable. But i suppose the result archive would be a very big one ?

I don't think that solution really jives with the 'Unix philosophy'.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Why use a deb package install rather than a Bash script ?
« Reply #4 on: November 22, 2013, 11:42:07 am »

A bash script could be more universal to all distributions or am i wrong ?

The language of the bash script will be universal.  The special cases required for each platform is non-trivial.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up