Jump to content

I am trying to install firefox China on my Xubuntu machine. 

It is a seemingly normal tar.bz2 file.

But I could not get it to be installed.

Here is some reference https://www.makeuseof.com/tag/compile-install-tar-gz-tar-bz2-files-ubuntu-linux/

 

Here are the steps I took until I hit a block.

* Prepare your system for installing from source

```bash
# https://www.makeuseof.com/tag/compile-install-tar-gz-tar-bz2-files-ubuntu-linux/

sudo apt-get install build-essential checkinstall

sudo apt-get install subversion git-core mercurial

# Install autoconf
sudo apt-get install autoconf

# Put all of the source code folder inside here : /usr/local/src

# Create this directory
sudo chown $USER /usr/local/src

# Gave it write access
sudo chmod u+rwx /usr/local/src

# Install apt-file for dependency issues
sudo apt-get install apt-file

# Update apt-file
sudo apt-file update

# Move your tar.gz / tar.bz2 filr to here : /usr/local/src
sudo mv <YOUR_TAR.GZ_FILE_NAME> <DESTINATION_FOLDER_PATH>

# cd into the local src folder
cd /usr/local/src

# extract the source file
tar -xzvf <filename>.tar.gz
# OR
tar -xjvf <filename>.tar.bz2

# Read the README file or INSTALL file

# cd into your software's folder
cd /usr/local/src/<extracted folder>

# Note: If your software does not have a configure file, you might want to try skipping straight to the Build & Install section of this article, though consult your INSTALL or README documentation first.

Here comes the question :

The folder DOES NOT contain any ./configure file.

Screenshot_2020-03-01_21-21-55.png.8904bb1a4ea0fbff34247c9d5f3fae77.png

 

What should I do.

If it is not broken, let's fix till it is. 

Link to comment
https://linustechtips.com/topic/1160728-install-from-source-file/
Share on other sites

Link to post
Share on other sites

5 minutes ago, C2dan88 said:

Are you sure you download the source code because from that screenshot the files in /usr/local/src/firefox are already compiled. Source code will normally comes with files ending in .c .cpp .h .hpp files etc.

 

 

I downloaded this tar.bz2 file and inside is a folder called firefox. 

123.thumb.png.93192404d5b823c8075464da3e761d2b.png

 

this is the correct file which I downloaded from Firefox China 's official website... 

If it is not broken, let's fix till it is. 

Link to post
Share on other sites

Then you have downloaded firefox pre-compiled and not actual source code. So that guide you linked to is no use.

 

Where you extract the app to is down to you. I think on linux the convention for pre-compiled apps is to add them to the /opt/ folder

For the OS to recognise the app you need to create a .desktop file in /usr/share/applications

https://www.maketecheasier.com/create-desktop-file-linux/

 

Link to post
Share on other sites

14 minutes ago, C2dan88 said:

Then you have downloaded firefox pre-compiled and not actual source code. So that guide you linked to is no use.

 

Where you extract the app to is down to you. I think on linux the convention for pre-compiled apps is to add them to the /opt/ folder

For the OS to recognise the app you need to create a .desktop file in /usr/share/applications

https://www.maketecheasier.com/create-desktop-file-linux/

 

I will try this tomorrow as right now I am heading out. Thanks for theinfo! Will let you know how it goes.

If it is not broken, let's fix till it is. 

Link to post
Share on other sites

10 hours ago, C2dan88 said:

 

I have followed the guide but still, cannot get it to work. 

Here's my Firefox_China.desktop

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/opt/firefox
Name=Firefox_China
Icon=/opt/firefox/browser/chrome/icons/default/default32.png

When I tried to execute the file (I can see the app from my app list btw) it says :

Faield to execue child process "opt/firefox" (Permission Denied).. 

If it is not broken, let's fix till it is. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×