LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-23-2016, 12:54 PM   #1
lharrisl
LQ Newbie
 
Registered: May 2016
Posts: 3

Rep: Reputation: Disabled
Do data files need to be within a binary release directory in order to run the software on them?


Hi there,

I am using linux via a virtual log in to another computer (using the terminal on my mac). I installed a piece of software on the virtual log in via a pre-compiled binary release. This is a now in a directory in my log in and the directory looks like this: "softwarename.Linux_x86_64" and then within that directory there are the different software tools that I can run. I want to use the software on some data files that are stored in a different directory. However, when I go into the directory with my data and try to run the software from the command line it doesn't work. However, I tried moving one or two data files from the other directory into the "softwarename.Linux_x86_64" directory and when I try to run the software from that directory on the moved data files it works fine. So my question is if you have installed a software package via a pre-compiled binary release do you always need to move you data files you want to use that software on into the same directory as that software?
Or can I move the data into a different sub-directory created within the "softwarename.Linux_x86_64" directory.

I hope my question makes sense. Thank you for your help.
 
Old 05-23-2016, 01:00 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Being more specific (e.g., what exactly IS softwarename, providing any error or warning messages, etc.) would make this easier to answer. That said, it's likely you don't have the correct permissions on the directory the data files are originally stored in whereas you do in the directory you move them to. Generally speaking, no, you don't need to move files around and yes, you could move them all to a sub-directory, but that's a work-around.
 
Old 05-23-2016, 01:03 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Quote:
Originally Posted by lharrisl View Post
Hi there,
I want to use the software on some data files that are stored in a different directory. However, when I go into the directory with my data and try to run the software from the command line it doesn't work.
My guess is because the softwares aren't in your PATH env variable, you have to execute them using full path or with ./ if you are in the softwares directory.

You can add the path to the softwares by altering the PATH env variable in ~/.bashrc for example:

Code:
export PATH=/Volumes/Users/lharrisl/software/directory:${PATH}
Then you will be able to execute softwares just with their names, passing full path to files as software arguments
 
Old 05-23-2016, 05:03 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,411

Rep: Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996
Maybe just link the path to your software directory. I guess it could be any number of issues too like file system permissions. Software could be running as a user I guess too.
 
Old 05-23-2016, 08:36 PM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
I didn't read your question closely enough. What keefaz said is most likely the issue.
 
Old 05-24-2016, 07:10 AM   #6
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 899

Rep: Reputation: 209Reputation: 209Reputation: 209
PATH is for executables.

It seems as though the program - residing in "softwarename.Linux_x86_64" - accepts data only in its own directory. The question is how to make the program point to data in some other directory. This can be best addressed by going through the original program (documentation, help files, install options, web - if it is well known software.

OK
 
  


Reply

Tags
binary, path


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Combining 2 binary (audio) data files together in C ksm Programming 3 09-19-2011 02:47 PM
Combining 2 binary (audio) data files together in C ksm Linux - Newbie 2 09-18-2011 01:39 PM
gdm-binary: /var/run/dbus/system_bus_socket: No such file or directory Kenny_Strawn Arch 31 11-22-2010 05:46 AM
Reading all files in a directory in an alphabetical order weeshalll Programming 7 11-25-2009 11:28 PM
can't run binary files abs Slackware 12 01-21-2005 02:56 AM

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

All times are GMT -5. The time now is 04:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration