Is it possible to have a binary and external files in separate folders?dowload find binary , accidentally...
Does my protagonist need to be the most important character?
How do I reset the TSA-unlocked indicator on my lock?
Should I avoid "big words" when writing to a younger audience?
What does "stirring tanks" mean?
What is the most REALISTIC cause of a worldwide catastrophe/apocalypse in the near future? (next ~100 years)
Is it safe to pay bills over satellite internet?
Car as a good investment
Did Terry Pratchett ever explain the inspiration behind the Luggage?
Fermat's polygonal number theorem
How do I get my boyfriend to remove pictures of his ex girlfriend hanging in his apartment?
how to say 'nerd' or 'geek' in french?
I am often given, occasionally stolen, rarely sold, and never borrowed
Why does Principal Vagina say, "no relation" after introducing himself?
How do you determine the reach of a Monster's unarmed strikes?
How to snip same part of screen as last time?
Unexpected exec permission from mmap when assembly files included in the project
Trade a bishop in the opening
the vs. value: what is the difference
Is a list of the most common English words copyrightable?
Translation of: 美しいと思ってしまったのだ
What does the British parliament hope to achieve by requesting a third Brexit extension?
Is there a historical explanation as to why the USA people are so litigious compared to France?
Milk instead of water in bread
I got this nail stuck in my tire, should I plug or replace?
Is it possible to have a binary and external files in separate folders?
dowload find binary , accidentally deleted /usr/bin/find binary fileCannot install rsync (unable to create…Input/output error)uninstall Python installed by compiling source?Is it possible to have a Debian package pre-install script run apt-get commands?Jenkins, Python and rootForce dpkg repairWhere can I extract or copy man executableProblems packing a .deb from autotools. (checkinstall, debhelper, …)How to set up busybox dpkg android?Prohibit access for certain programs to specific user groups
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
I'm trying to create a .deb installer which saves the binary in the /usr/bin directory, and the external files in the /usr/lib/ directory. The installer works, except the binary is looks for files in the same directory, which of course are not there.
The binary and library files were created with PyInstaller, and packaged with dpkg. I'm not sure if there is a function in PyInstaller that can look for external files (not as far as I can tell), or is this something that can be done in dpkg.
Would a symbolic link work, keeping the actual binary in the same directory as the external files?
python dpkg binary
add a comment
|
I'm trying to create a .deb installer which saves the binary in the /usr/bin directory, and the external files in the /usr/lib/ directory. The installer works, except the binary is looks for files in the same directory, which of course are not there.
The binary and library files were created with PyInstaller, and packaged with dpkg. I'm not sure if there is a function in PyInstaller that can look for external files (not as far as I can tell), or is this something that can be done in dpkg.
Would a symbolic link work, keeping the actual binary in the same directory as the external files?
python dpkg binary
this is something that needs to be done in your program. modify it to look in the right directory (i.e. under /usr/lib) for its "external" files.
– cas
1 hour ago
The files it's looking for are automatically generated by pyinstaller, and so is the binary. Sounds like I might be out of luck on this one, unless pyinstaller has an option to look in a different directory but I've been searching for hours and haven't found anything.
– Gacekky1
54 mins ago
if you're making deb packages then you probably shouldn't use pyinstaller. build a deb package instead. maybe usepython-stdeb
orpython3-stdeb
. and maybe usedebdry
too, which further automates the production of .deb python packages.
– cas
40 mins ago
I'll check those out. Pyinstaller seems to be very limited. The binary created ALWAYS looks in the current directory for the python library files. I'm also not dead set on creating a .deb package either, I would prefer something that was as "cross-distribution" as possible. But as this is just a supplementary test utility, I've already wasted too much time on it... I'm tempted to just bundle the pyinstaller output in a tarball and just distribute it that way.
– Gacekky1
22 mins ago
add a comment
|
I'm trying to create a .deb installer which saves the binary in the /usr/bin directory, and the external files in the /usr/lib/ directory. The installer works, except the binary is looks for files in the same directory, which of course are not there.
The binary and library files were created with PyInstaller, and packaged with dpkg. I'm not sure if there is a function in PyInstaller that can look for external files (not as far as I can tell), or is this something that can be done in dpkg.
Would a symbolic link work, keeping the actual binary in the same directory as the external files?
python dpkg binary
I'm trying to create a .deb installer which saves the binary in the /usr/bin directory, and the external files in the /usr/lib/ directory. The installer works, except the binary is looks for files in the same directory, which of course are not there.
The binary and library files were created with PyInstaller, and packaged with dpkg. I'm not sure if there is a function in PyInstaller that can look for external files (not as far as I can tell), or is this something that can be done in dpkg.
Would a symbolic link work, keeping the actual binary in the same directory as the external files?
python dpkg binary
python dpkg binary
asked 1 hour ago
Gacekky1Gacekky1
113 bronze badges
113 bronze badges
this is something that needs to be done in your program. modify it to look in the right directory (i.e. under /usr/lib) for its "external" files.
– cas
1 hour ago
The files it's looking for are automatically generated by pyinstaller, and so is the binary. Sounds like I might be out of luck on this one, unless pyinstaller has an option to look in a different directory but I've been searching for hours and haven't found anything.
– Gacekky1
54 mins ago
if you're making deb packages then you probably shouldn't use pyinstaller. build a deb package instead. maybe usepython-stdeb
orpython3-stdeb
. and maybe usedebdry
too, which further automates the production of .deb python packages.
– cas
40 mins ago
I'll check those out. Pyinstaller seems to be very limited. The binary created ALWAYS looks in the current directory for the python library files. I'm also not dead set on creating a .deb package either, I would prefer something that was as "cross-distribution" as possible. But as this is just a supplementary test utility, I've already wasted too much time on it... I'm tempted to just bundle the pyinstaller output in a tarball and just distribute it that way.
– Gacekky1
22 mins ago
add a comment
|
this is something that needs to be done in your program. modify it to look in the right directory (i.e. under /usr/lib) for its "external" files.
– cas
1 hour ago
The files it's looking for are automatically generated by pyinstaller, and so is the binary. Sounds like I might be out of luck on this one, unless pyinstaller has an option to look in a different directory but I've been searching for hours and haven't found anything.
– Gacekky1
54 mins ago
if you're making deb packages then you probably shouldn't use pyinstaller. build a deb package instead. maybe usepython-stdeb
orpython3-stdeb
. and maybe usedebdry
too, which further automates the production of .deb python packages.
– cas
40 mins ago
I'll check those out. Pyinstaller seems to be very limited. The binary created ALWAYS looks in the current directory for the python library files. I'm also not dead set on creating a .deb package either, I would prefer something that was as "cross-distribution" as possible. But as this is just a supplementary test utility, I've already wasted too much time on it... I'm tempted to just bundle the pyinstaller output in a tarball and just distribute it that way.
– Gacekky1
22 mins ago
this is something that needs to be done in your program. modify it to look in the right directory (i.e. under /usr/lib) for its "external" files.
– cas
1 hour ago
this is something that needs to be done in your program. modify it to look in the right directory (i.e. under /usr/lib) for its "external" files.
– cas
1 hour ago
The files it's looking for are automatically generated by pyinstaller, and so is the binary. Sounds like I might be out of luck on this one, unless pyinstaller has an option to look in a different directory but I've been searching for hours and haven't found anything.
– Gacekky1
54 mins ago
The files it's looking for are automatically generated by pyinstaller, and so is the binary. Sounds like I might be out of luck on this one, unless pyinstaller has an option to look in a different directory but I've been searching for hours and haven't found anything.
– Gacekky1
54 mins ago
if you're making deb packages then you probably shouldn't use pyinstaller. build a deb package instead. maybe use
python-stdeb
or python3-stdeb
. and maybe use debdry
too, which further automates the production of .deb python packages.– cas
40 mins ago
if you're making deb packages then you probably shouldn't use pyinstaller. build a deb package instead. maybe use
python-stdeb
or python3-stdeb
. and maybe use debdry
too, which further automates the production of .deb python packages.– cas
40 mins ago
I'll check those out. Pyinstaller seems to be very limited. The binary created ALWAYS looks in the current directory for the python library files. I'm also not dead set on creating a .deb package either, I would prefer something that was as "cross-distribution" as possible. But as this is just a supplementary test utility, I've already wasted too much time on it... I'm tempted to just bundle the pyinstaller output in a tarball and just distribute it that way.
– Gacekky1
22 mins ago
I'll check those out. Pyinstaller seems to be very limited. The binary created ALWAYS looks in the current directory for the python library files. I'm also not dead set on creating a .deb package either, I would prefer something that was as "cross-distribution" as possible. But as this is just a supplementary test utility, I've already wasted too much time on it... I'm tempted to just bundle the pyinstaller output in a tarball and just distribute it that way.
– Gacekky1
22 mins ago
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545819%2fis-it-possible-to-have-a-binary-and-external-files-in-separate-folders%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545819%2fis-it-possible-to-have-a-binary-and-external-files-in-separate-folders%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
this is something that needs to be done in your program. modify it to look in the right directory (i.e. under /usr/lib) for its "external" files.
– cas
1 hour ago
The files it's looking for are automatically generated by pyinstaller, and so is the binary. Sounds like I might be out of luck on this one, unless pyinstaller has an option to look in a different directory but I've been searching for hours and haven't found anything.
– Gacekky1
54 mins ago
if you're making deb packages then you probably shouldn't use pyinstaller. build a deb package instead. maybe use
python-stdeb
orpython3-stdeb
. and maybe usedebdry
too, which further automates the production of .deb python packages.– cas
40 mins ago
I'll check those out. Pyinstaller seems to be very limited. The binary created ALWAYS looks in the current directory for the python library files. I'm also not dead set on creating a .deb package either, I would prefer something that was as "cross-distribution" as possible. But as this is just a supplementary test utility, I've already wasted too much time on it... I'm tempted to just bundle the pyinstaller output in a tarball and just distribute it that way.
– Gacekky1
22 mins ago