LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2016, 07:32 AM   #1
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Rep: Reputation: Disabled
Installing from repositories


I want to install HDF5 on my linux computer.

Eh, can I do this from repositories- if so how, and why?

I downloaded the source package from github but i'm not sure how to build it...

there's a setup.py file. What do I do with this?

Thanks...
 
Old 02-09-2016, 08:06 AM   #2
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
Hi,

There are hdf5-tools and hdf5-helpers packages in universe.

To build from source run
Code:
python setup.py install
Hope this helps
 
Old 02-09-2016, 08:26 AM   #3
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
Thanks, what's this error mean?

Installed /home/chris/anaconda2/lib/python2.7/site-packages/Pydap-3.1.1-py2.7.egg
Searching for hydroffice.bag
Reading https://pypi.python.org/simple/hydroffice.bag/
No local packages or download links found for hydroffice.bag
error: Could not find suitable distribution for Requirement.parse('hydroffice.bag')
 
Old 02-09-2016, 08:39 AM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Quote:
No local packages or download links found for hydroffice.bag
What does it mean? That you are missing hydroffice.bag.

Usually for python stuff. I use pip to handle python application installations.

http://docs.h5py.org/en/latest/build.html

Quote:
Installation
Pre-configured installation (recommended)

Its strongly recommended that you use a Python distribution or package manager to install h5py along with its compiled dependencies. Here are some which are popular in the Python community:
 
Old 02-09-2016, 08:44 AM   #5
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
okay cool.

conda install h5py seems to be working.

What's going on there- is it pulling it from the repositories?

Also this probably seems stupid but after it's installed... how do I open it?
 
Old 02-09-2016, 08:46 AM   #6
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
wait, what happened here?

Code:
Extracting packages ...
[      COMPLETE      ]|################################################################################################################################################| 100
Unlinking packages ...
[      COMPLETE      ]|################################################################################################################################################| 100
Linking packages ...
An unexpected error has occurred, please consider sending the###                                                                                                       |  28%
following traceback to the conda GitHub issue tracker at:

    https://github.com/conda/conda/issues

Include the output of the command 'conda info' in your report.


Traceback (most recent call last):
  File "/home/chris/anaconda2/bin/conda", line 5, in <module>
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 195, in main
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 202, in args_func
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/cli/main_install.py", line 45, in execute
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/cli/install.py", line 423, in install
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/plan.py", line 537, in execute_actions
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/instructions.py", line 148, in execute_instructions
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/instructions.py", line 91, in LINK_CMD
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/instructions.py", line 87, in link
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/install.py", line 634, in link
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/install.py", line 132, in _link
  File "/home/chris/anaconda2/lib/python2.7/shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "/home/chris/anaconda2/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: u'/home/chris/anaconda2/pkgs/numpy-1.10.4-py27_0/lib/python2.7/site-packages/numpy/distutils/__config__.py'

Last edited by chris_crunch; 02-09-2016 at 09:08 AM.
 
Old 02-09-2016, 08:50 AM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Please use code tags to post code.
 
Old 02-09-2016, 09:10 AM   #8
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Please use code tags to post code.
Sorry, have edited. Will do in future.
 
Old 02-09-2016, 02:28 PM   #9
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
Chris, have you tried installing from repositories?
Does it work at the end of the day?
Here are lists of files for hdf5-tools and hdf5-helpers if you are lost.
 
Old 02-10-2016, 12:14 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
with this user, you really have to look at their posting history.
started about a dozen threads about installing python stuff, ignoring the obvious advice of "use the repos" and always starts a new thread instead of trying to solve the problem first.
all in the last 2 weeks.
 
Old 02-10-2016, 02:34 AM   #11
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
with this user, you really have to look at their posting history.
started about a dozen threads about installing python stuff, ignoring the obvious advice of "use the repos" and always starts a new thread instead of trying to solve the problem first.
all in the last 2 weeks.
I'm sorry, I'm trying my best to learn. This is a forum for helping new users, not for criticizing them surely?

But I still can't get my head around this repository stuff guys. No one has took the time to give me a proper explanation, instead just swatting me with "use the repos".

If I'm correct, can you just use the command

Code:
sudo apt-get install <thing>
will this install stuff straight from these repository things? I have 'googled' this, I know they're archives of online software programs, I know there's 4 of them... but I'm not exactly sure how to use them.
 
Old 02-10-2016, 02:47 AM   #12
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by ondoho View Post
with this user, you really have to look at their posting history.
started about a dozen threads about installing python stuff, ignoring the obvious advice of "use the repos" and always starts a new thread instead of trying to solve the problem first.
all in the last 2 weeks.
Looks like Chris is not yet familiar with what repositories are, hence attempts of building. For newcomers it's okay.
 
Old 02-10-2016, 02:48 AM   #13
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
Each distro is tied to a pool of software called a repository. The software in the repository is verified to work properly with the distro. Installing software from outside the repository can and does cause problems. While Ubuntu and Debian both come from the same base (Debian), they are not the same. Installing a Ubuntu based program in Debian may work or may not and vice-versa.

Pick a distro and only install from the repository until you understand what you're doing. As Ubuntu (and all of its derivatives) has a huge repository, it's likely that all you need is there. It can be installed through Software Center, Synaptic (which I use) or apt-get (which I also use).

You really need to take the time to do some reading so you actually understand how the whole package management philosophy works. I've seen all your posts and you have yet to show you have paid any attention to the advice you've been given and soon folks are going to just give up helping you...
 
Old 02-10-2016, 02:52 AM   #14
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by NGIB View Post
You really need to take the time to do some reading so you actually understand how the whole package management philosophy works. I've seen all your posts and you have yet to show you have paid any attention to the advice you've been given and soon folks are going to just give up helping you...
Hi NGIB,

Thanks for the advice. So if I wanted to install a program from the repository on my system using apt-get, I would say something like

Code:
sudo apt-get install name_of_program
and it would install it?
 
Old 02-10-2016, 02:56 AM   #15
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
Yes, but you need to know the exact package name.

Also, you need to stop posting multiple threads about the same issue. As I said in your other thread, install Synaptic and you can use it to figure out what you're looking for. Rather that continue to ask the same thing fifty different ways, perhaps you need to follow the advice you've been given and actually put some effort into learning what you're trying to do.

If you continue the path you've been on, I suspect folks will add you to their ignore list - I know I will...

Last edited by NGIB; 02-10-2016 at 02:58 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing nVidia Drivers using repositories? Xeratul Debian 2 01-01-2013 03:17 AM
error installing from Ubuntu repositories OrangeShoes Ubuntu 3 03-08-2011 06:17 AM
Installing Gnome from repositories on Mepis Mr. Alex MEPIS 4 06-28-2010 11:47 AM
Installing repositories On ubuntu automata Linux - Software 1 03-30-2007 12:36 AM
Error installing packages from repositories Eckstona Linux - Software 2 12-16-2006 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration