where should i put packages- after compile and make?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
JPC22

where should i put packages- after compile and make?

Post by JPC22 »

I'm manually installing some packages for remote photo capture with a powershot A75 on the current distro linux mint 12 lisa (64-bit)
those packages are not available trough synaptic or apt.

i know that capture-1.0.4-cvs-20071123 depends on libptp2-1.1.10 that depends on libusb-1.0.8
and that i have to install the above from right to left.

i know how to extract them and compile them in terminal ,but not where to put them

I compiled the first in a folder on desktop- then tried to compile the second in another folder but it does not find the first.
even tried adding files from the first package in the second folder ... does not work

what i ask for is surely basic knowledge and i sure i should extract my packages in the right place before compiling them, but I lack that info.


should i try gdebi package installer (trying that right now)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
dagon
Level 7
Level 7
Posts: 1655
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden
Contact:

Re: where should i put packages- after compile and make?

Post by dagon »

A short answer is:

Code: Select all

sudo make install
The most common way to compile a program is

Code: Select all

./configure
make
sudo make install
But there are other methods around.
If you look in the README or INSTALL file you'll find additional information.
JPC22

Re: where should i put packages- after compile and make?

Post by JPC22 »

I followed those steps and it did not work- the second package still does not find the first.
dagon
Level 7
Level 7
Posts: 1655
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden
Contact:

Re: where should i put packages- after compile and make?

Post by dagon »

Well. I looked at it and I think I would need a full day to make anything out of it... Can't do that for you. Sorry. :shock:
User avatar
Roken
Level 5
Level 5
Posts: 737
Joined: Fri Nov 19, 2010 4:55 pm
Location: Newport, S Wales

Re: where should i put packages- after compile and make?

Post by Roken »

care to tell us what errors/messages "make install" gives you (note - while ./configure and make can usually be done as a normal user, make install requires sudo)
Kernel Linux Tex 5.12.14-zen1-1-zen, XFCE
Arch
Dual GTX1070 8Gb
AMD Ryzen 1800X
32Gb RAM
RETNUH

Re: where should i put packages- after compile and make?

Post by RETNUH »

There should make a file called "install" or "readme" somewhere in the folder you downloaded. Read that and it should have instructions.
Habitual

Re: where should i put packages- after compile and make?

Post by Habitual »

/usr/src has always been my practice. I build/compile from there as root.

Code: Select all

cd /usr/src
wget domain.com/download.tar.gz
tar zxf download.tar.gz
cd download
less DOCUMENTATION*
./configure
make 
make install
* DOCUMENTATION... is
less README or
less INSTALL.txt or similar
JPC22

Re: where should i put packages- after compile and make?

Post by JPC22 »

usr/src was the info i was looking for but i still get this error

./configure: line 22453: test: : integer expression expected
configure: error:
*** You need the 0 line of libusb which is at least 0.1.8.
*** Higher versions might not be compatible! Download and istall
*** libusb version 0.X.X from http://sourceforge.net/projects/libusb/ or
*** use --disable-ptpcam option to build without ptpcam tool.


used the following
CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 --localstatedir=/var/lib && make

tried the following too
CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr --sysconfdir=/src --libdir=/usr/lib64 --localstatedir=/var/lib && make && make install

is there something i can do for that- except following every instruction i could find (which i did before asking ).

if ptpcam is broken then i just wont be able to take photos directly from computer with camera.
dagon
Level 7
Level 7
Posts: 1655
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden
Contact:

Re: where should i put packages- after compile and make?

Post by dagon »

./configure: line 22453: test: : integer expression expected
configure: error:
*** You need the 0 line of libusb which is at least 0.1.8.
*** Higher versions might not be compatible! Download and istall
*** libusb version 0.X.X from http://sourceforge.net/projects/libusb/ or
*** use --disable-ptpcam option to build without ptpcam tool.
I think this means you installed the latest version of libusb. You need an earlier version that is 0.1.8 and more but below 1.0
If you look in synaptic you'll see there are different versions of libusb. The one/ones you need are probably libusb-0.1-4 and/or libusb-dev
Habitual

Re: where should i put packages- after compile and make?

Post by Habitual »

dagon wrote:
./configure: line 22453: test: : integer expression expected
configure: error:
*** You need the 0 line of libusb which is at least 0.1.8.
*** Higher versions might not be compatible! Download and istall
*** libusb version 0.X.X from http://sourceforge.net/projects/libusb/ or
*** use --disable-ptpcam option to build without ptpcam tool.
I think this means you installed the latest version of libusb. You need an earlier version that is 0.1.8 and more but below 1.0
If you look in synaptic you'll see there are different versions of libusb. The one/ones you need are probably libusb-0.1-4 and/or libusb-dev
+1
JPC22

Re: where should i put packages- after compile and make?

Post by JPC22 »

I looked in synaptic with the normal search method and found absolutely nothing.

thanks for those advices guys, they may be useful in the future.

right now this program is not working, and that just means i will have to take photos then upload them to my pc, like before.
dagon
Level 7
Level 7
Posts: 1655
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden
Contact:

Re: where should i put packages- after compile and make?

Post by dagon »

JPC22 wrote:I looked in synaptic with the normal search method and found absolutely nothing.
And if I type libusb in synaptic I get more than 30 hits. If i search for libusb-0.1 I get only one hit and that is libusb-0.1-4
configure: error:
*** You need the 0 line of libusb which is at least 0.1.8.
The 0.1-4 package mentioned above is 0.1.12 and if you have a second go at it this is the one I'd install first.
JPC22

Re: where should i put packages- after compile and make?

Post by JPC22 »

i use french canadian language packs wich happens to be obsolete sometimes and since their latest update i can now find in synaptic that i aldready have libusb installed
and that digikam needs the latest version of it.
Locked

Return to “Beginner Questions”